run-llama / rags

Build ChatGPT over your data, all with natural language
MIT License
6.2k stars 637 forks source link

If the Agent can be persisted #12

Open snassimr opened 9 months ago

snassimr commented 9 months ago

Once I loaded the PDF and was able to ask questions about it I want to save the agent to use it between launches of 1_🏠Home.py. Or should 1🏠_Home.py is intended to run as online service ? Any way to create the Agent programmatically once the service was down or migrated ?

anoopshrma commented 9 months ago

Hi @snassimr Agents are now being persisted!

snassimr commented 9 months ago

Hi ,

@anoopshrma I see agent created , but looks some more data should persisted to let know the Agent what PDF it aware of to answer question about . I saw the answer for question like below .

image

The note appears on Agent page looks copied from RAG config page - looks like a small bug :

image

anoopshrma commented 9 months ago

The note appears on Agent page looks copied from RAG config page - looks like a small bug :

Ah yea πŸ˜… feel free to raise the PR to fix if you want to contribute πŸ™Œ