Setup
Launch openGauss Container
Install langchain-opengauss
- openGauss ≥ 7.0.0
- Python ≥ 3.8
- psycopg2-binary
Credentials
Using your openGauss CredentialsInitialization
Manage vector store
Add items to vector store
Update items in vector store
Delete items from vector store
Query vector store
Once your vector store has been created and the relevant documents have been added you will most likely wish to query it during the running of your chain or agent.Query directly
Performing a simple similarity search can be done as follows:- TODO: Edit and then run code cell to generate output
Query by turning into retriever
You can also transform the vector store into a retriever for easier usage in your chains.- TODO: Edit and then run code cell to generate output
Usage for retrieval-augmented generation
For guides on how to use this vector store for retrieval-augmented generation (RAG), see the following sections:Configuration
Connection settings
Supported combinations
Performance optimization
Index tuning guidelines
HNSW Parameters:m: 16-100 (balance between recall and memory)ef_construction: 64-1000 (must be > 2*m)
Connection pooling
Limitations
bitandsparsevecvector types currently in development- Maximum vector dimensions: 2000 for
vectortype
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

