R2R icon indicating copy to clipboard operation
R2R copied to clipboard

What is the difference between RAG Agent and question Answer?

Open aliabbasjp opened this issue 1 year ago • 4 comments

image

I see when i use question answer it defaults to using openAI even if other config is configured to use only localllm and i see no way to configure it. It errors out in the logs showing unable to connect to openai

Screenshot 2024-09-10 at 7 21 14 PM

aliabbasjp avatar Sep 10 '24 13:09 aliabbasjp

Hey @aliabbasjp the RAG agent is a multi-turn LLM agent, which can choose to answer a query with or without a search. It makes a tool call to conduct the search.

Question and answer always does a search, and is single-turn.

In #1104 you mention that you're running a local LLM—in the sidebar to the left here you need to specify the model. Right now it defaults to OpenAI(which, as you noted, you're not using, so it's throwing a 500 error.) This is going to be updated in our next release such that we don't set the model on the UI by default.

This question is related to #1104, so I'll keep this one open and close the other. Let me know if this solves it for you!

NolanTrem avatar Sep 10 '24 15:09 NolanTrem

Thanks, so how can i configure the tooling the rag agent uses? Question Answer is using default open ai?

aliabbasjp avatar Sep 10 '24 15:09 aliabbasjp

You can select the model on the sidebar, like so: Screenshot 2024-09-10 at 9 28 25 AM

We don't currently have a way to modify and add custom tools, but we hope to add this in soon.

NolanTrem avatar Sep 10 '24 16:09 NolanTrem

i am unable to run qna from UI. its throwing network error Image 30-09-24 at 11 17 AM

riyajatar37003 avatar Sep 30 '24 05:09 riyajatar37003