Closed maurominella closed 4 months ago
@thinkall
Hi @maurominella , could you follow this notebook? https://github.com/microsoft/autogen/blob/main/notebook/agentchat_RetrieveChat.ipynb
The blog is a little bit outdated, some APIs have been changed.
Describe the bug
I'm trying to test RAG with autogen, following the documentation at https://microsoft.github.io/autogen/blog/2023/10/18/RetrieveChat/.
I installed pyautogen==0.2.20, "pyautogen[retrievechat]", pypdf and "unstructured[all-docs]".
The problem is that when I run
ragproxyagent.initiate_chat(assistant, problem="What is autogen?")
, it shows a textbox to gather a string:![image](https://github.com/microsoft/autogen/assets/32428960/48089b9b-6b5c-4720-a1a4-c817bd9f8185)
Shouldn't it start running the agent to extract the answer from the page provided, as shown in the documentation ? I don't understand what it expects from me.
If I simply hit enter, it replies asking me to specify a real question. If I repeat the string that I passed as parameter, it provides a generic answer that does not take into account the link to the .md file that I passed when I created the "RetrieveUserProxyAgent" object:
![image](https://github.com/microsoft/autogen/assets/32428960/1236e21d-8da5-4521-908b-f92509a8f0c7)
Just for testing I tried to explicitly call
ragproxyagent.retrieve_docs(problem="What is autogen?", n_results=3,search_string="")
, which instead started opening the link and doing some tasks (chunking and embedding, I guess)
In other words, it seems that the "problem" parameter is not considered at all, or that the RAG tasks simply do not start
Steps to reproduce
Follow the steps indicated by the documentation, using the (latest, as of today) packages that I installed:
Step 1:
Step 2:
Step 3:
Model Used
Azure OpneAI service with deployment gpt4 turbo version 0125:
Expected Behavior
get an answer based on the "https://raw.githubusercontent.com/microsoft/autogen/main/README.md" file
Screenshots and logs
No response
Additional Information
No response