Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for chatting with multiple documents by referencing their IDs in a DB #6490

Conversation

13point5
Copy link

An example of chatting with multiple docs with reference to their IDs in a DB. Here's an example:

How are @doc:bw456 and @doc:cg789 different in their main ideas on learning?

This example uses the Self Querying Retriever with a RetrieverQAWithSourcesChain to create a tool that answers questions on a single doc.

The STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION agent uses this tool to create actions for each doc and then answers the user's query.

My Twitter handle 😬: 27upon2

Who can review?

@hwchase17

@vercel
Copy link

vercel bot commented Jun 20, 2023

@13point5 is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

This example uses the Self Querying Retriever
with a `RetrieverQAWithSourcesChain` to create
a tool that answers questions on a single doc.

The `STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION`
agent uses this tool to create actions for each
doc and then answers the user's query.
@13point5 13point5 force-pushed the multi-doc-qa-self-query-retriever branch from dcd1188 to 14779c4 Compare June 21, 2023 05:33
@vercel
Copy link

vercel bot commented Jun 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jun 21, 2023 5:33am

@dosubot dosubot bot added Ɑ: agent Related to agents module 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder labels Jul 14, 2023
@efriis
Copy link
Member

efriis commented Nov 1, 2023

Hey @13point5 ! Looks like a few things have changed since you put this up. Closing this for now because we don't do agent documentation here anymore, and this could make a great LangChain Template if you're interested in putting it up as one!

https://github.com/langchain-ai/langchain/blob/master/templates/README.md

@efriis efriis closed this Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: agent Related to agents module 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants