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

How do knowledge bases relate to RAG agents? #153

Open
shanmu-raoyunfei opened this issue Aug 12, 2024 · 2 comments
Open

How do knowledge bases relate to RAG agents? #153

shanmu-raoyunfei opened this issue Aug 12, 2024 · 2 comments

Comments

@shanmu-raoyunfei
Copy link

Great progress!How do knowledge bases relate to RAG agents?

@hughlv
Copy link
Collaborator

hughlv commented Aug 13, 2024

The basic logic is to let LLM decide which dataset is the best to use by auto-generating prompts as below:

node_2.register_for_llm(
    name="query_vectordb",
    description="""
Retrieves relevant information and generates a response based on the query.
Available datasets:
- Dataset ID 3: New Dataset2 - Description of New Dataset. Something new.
- Dataset ID 4: FLAML - FLAML documents.

Choose the appropriate dataset ID based on the query.
""",
)(query_vectordb)

LLM will deduce the best fit based on the question. As you can see, I abandoned the RAG nodes in AutoGen, replaced it with a custom tool/function query_vectordb.

However, this is still in the middle of a proof-of-concept.

@hughlv
Copy link
Collaborator

hughlv commented Aug 13, 2024

image

You don't need to choose dataset anywhere, just need to enable RAG in the converse config between two agents. Of course we need to make sure each dataset has proper name and description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants