Giter Club home page Giter Club logo

Comments (7)

pseudotensor avatar pseudotensor commented on July 19, 2024 1

Smarter models do better at such tasks.

https://github.com/h2oai/enterprise-h2ogpte/blob/main/rag_benchmark/results/test_client_e2e.md

from h2ogpt.

pseudotensor avatar pseudotensor commented on July 19, 2024

If you can give me an example repro of your case using some set of public documents, where it shows sources are at bottom of list, I can take a look.

The sources are scored based upon standard semantic similarity search and the distance metric 'l2'. The LLM then decides what is most relevant from that. As you might imagine, that's why LLMs are so useful, is because they actually find the relevant info, when semantic similarity cannot fully. That's why we fill the context with various info the let the LLM decide.

There's no easy way to extract which text/sources the LLM used, that's an area of active research. In some cases a simple ngram check may help, but it also might hurt for non-keyword related cases. There may be a way to back-prop through the model to see why it decided, but nobody has figured that out for auto-regressive case, only classification.

If the user has to verify the answer, best is to present the sources more cleanly like in our Enterprise h2oGPT https://h2o.ai/resources/video/enterprise-h2ogpt/ that shows full page references with highlighted text regions. But that doesn't really solve your problem when there are numerous documents.

from h2ogpt.

rohitnanda1443 avatar rohitnanda1443 commented on July 19, 2024

how does one get the highlighted text in the source when one clicks in the opensource version?

from h2ogpt.

pseudotensor avatar pseudotensor commented on July 19, 2024

There's no highlighted text in OSS version.

from h2ogpt.

rohitnanda1443 avatar rohitnanda1443 commented on July 19, 2024

How does one resolve the "detail": "File not allowed" error , when one clicks on the sources?

from h2ogpt.

pseudotensor avatar pseudotensor commented on July 19, 2024

^ #1512

from h2ogpt.

rohitnanda1443 avatar rohitnanda1443 commented on July 19, 2024

A further question: the LLM is unable to provide the information from the document which is given in a Table in the PDF. Even after asking specifically which table to see it is unable to give the results.

For example if one wants to know what all are the company's investments it is unable to list it down (See table 3B in the 2023 pdf).

Going forward, aim was to find out which new investments happened during the year which could be done by comparing annual reports of 2 years, the LLM is unable to to that even after pointing which 2 tables to compare.

Annual Reports: https://www.infoedge.in/InvestorRelations/IR_Annual_Report

from h2ogpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.