SciPhi-AI / R2R

The all-in-one solution for RAG. Build, scale, and deploy state of the art Retrieval-Augmented Generation applications
https://r2r-docs.sciphi.ai/
MIT License
3.54k stars 265 forks source link

What is the difference between RAG Agent and question Answer? #1103

Open aliabbasjp opened 1 month ago

aliabbasjp commented 1 month ago

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
NolanTrem commented 1 month ago

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!

aliabbasjp commented 1 month ago

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

NolanTrem commented 1 month ago

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.

riyajatar37003 commented 1 month ago

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