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

[Bug]: https://ag2ai.github.io/ag2/docs/notebooks/agentchat_graph_rag_neo4j/ Notebook: cannot use pre-made database, I have to create a new one every time I run the notebook. #234

Open
Tylersuard opened this issue Dec 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Tylersuard
Copy link

Describe the bug

When using this notebook, I cannot bring my own database, I have to build a new database every time I run the notebook. If I bring my own database, I get attribute errors.

Steps to reproduce

Run the notebook, but comment out this line:
query_engine.init_db(input_doc=input_documents)

That line deletes all records in whatever database you designate and creates a new database.

Model Used

No response

Expected Behavior

I would like to be able to use this notebook to connect to a pre-existing neo4j database, rather than having to create a new one from scratch every time we run the notebook.

Screenshots and logs

No response

Additional Information

No response

@Tylersuard Tylersuard added the bug Something isn't working label Dec 19, 2024
@Eric-Shang
Copy link
Collaborator

Eric-Shang commented Dec 20, 2024

You were right. It's solved yesterday. Please check the updated notebook. You can use the connect_db method now

@Tylersuard
Copy link
Author

Tylersuard commented Dec 20, 2024

@Eric-Shang Thank you! I appreciate the quick response. I am still getting errors though, I think because I am using Azure OpenAI. Why can't agents with graph capabilities use an llm config? How should I set these agents up for Azure OpenAI without one?

@tyler-suard-parker
Copy link

tyler-suard-parker commented Dec 20, 2024

image
Additionally, the docstring for the add_to_agent() method says it can only be added to a user proxy agent, but in the notebook we are adding it to a conversable agent.

I tried following the instructions here for setting LlamaIndex to use Azure Openai (https://docs.llamaindex.ai/en/stable/examples/customization/llms/AzureOpenAI/) , but when I run the notebook it is still trying to ping openai.com instead of azure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants