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

Contribution to Hugging Face 🤗 cookbook: Add a Lang Chain agent that can interact with a PostgreSQL database #87

Closed
paartheee opened this issue Apr 26, 2024 · 1 comment

Comments

@paartheee
Copy link

We can use the PostgreSQL database to feed additional context to LLMs. However, the naive approach to generating database queries is currently too brittle. Therefore, it is advisable to implement an agent and give it tools to interact with a graph database. The tools use predefined flows and allow agents to solve specific problems. we can use Mixtral 8x7b as an agent.

@aymeric-roucher
Copy link
Collaborator

This is a nearly word-for-word duplicate of this issue:

You can use more than just vector databases to feed additional context to LLMs. However, the naive approach of generating database queries is too brittle at the moment. Therefore, it is advisable to implement an agent and give it tools to interact with a graph database. The tools use predefined flows and allow agent to solve specific problems. I have a version with OpenAI here: https://towardsdatascience.com/enhancing-interaction-between-language-models-and-graph-databases-via-a-semantic-layer-0a78ad3eba49 Would probably need to use Mixtral 8x7b as an agent.

Closing this, please don't generate other clones of existing issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants