mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 20:42:24 +00:00
Implement OpenGauss vector database integration for Llama Stack with the following features: - Add OpenGaussVectorIOAdapter for vector storage and retrieval - Support native vector similarity search operations - Implement connection and query management with psycopg2 - Provide configuration template for easy setup - Add comprehensive unit tests The implementation allows Llama Stack users to leverage OpenGauss as an enterprise-grade vector database for RAG applications. Users can configure their environment through a simple YAML configuration and environment variables.
1.4 KiB
1.4 KiB
remote::opengauss
Description
OpenGauss is a remote vector database provider for Llama Stack. It allows you to store and query vectors directly in memory. That means you'll get fast and efficient vector retrieval.
Features
- Easy to use
- Fully integrated with Llama Stack
Usage
To use OpenGauss in your Llama Stack project, follow these steps:
- Install the necessary dependencies.
- Configure your Llama Stack project to use OpenGauss.
- Start storing and querying vectors.
Installation
You can install OpenGauss using docker:
docker pull opengauss/opengauss:latest
Documentation
See OpenGauss' documentation for more details about OpenGauss in general.
Configuration
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
host |
str | None |
No | localhost | |
port |
int | None |
No | 5432 | |
db |
str | None |
No | postgres | |
user |
str | None |
No | postgres | |
password |
str | None |
No | mysecretpassword |
Sample Configuration
host: ${env.OPENGAUSS_HOST:=localhost}
port: ${env.OPENGAUSS_PORT:=5432}
db: ${env.OPENGAUSS_DB}
user: ${env.OPENGAUSS_USER}
password: ${env.OPENGAUSS_PASSWORD}