Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/oss/python/integrations/vectorstores/google_alloydb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ description: "Integrate with the Google alloydb for postgresql vector store usin

This notebook goes over how to use `AlloyDB for PostgreSQL` to store vector embeddings with the `AlloyDBVectorStore` class.

**AlloyDB AI Features**: This integration natively supports the `alloydb_ai_nl` and `google_ml_integration` extensions, providing database-native AI capabilities:
* **Zero-Knob ScaNN**: Auto-tuning, self-managing vector indices via `ScaNNIndex(mode="AUTO")`.
* **Columnar Engine & Vector Assist**: Accelerate vector queries dynamically using the `ColumnarEngine`.
* **Semantic Reranking**: Re-rank retrieved documents natively in the database using the `AlloyDBDocumentCompressor` (backed by `google_ml.rank`).
* **Natural Language to SQL**: Build native SQL Agents using `AlloyDBToolkit`.
* **In-Database AI Tools**: Utilize LLM functions directly in SQL (`AlloyDBIfTool`, `AlloyDBSummaryTool`, `AlloyDBSentimentTool`).
* **Multimodal Embeddings**: Generate vectors natively in the database (e.g., using `aembed_image()`).

Learn more about the package on [GitHub](https://github.com/googleapis/langchain-google-alloydb-pg-python/).

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/googleapis/langchain-google-alloydb-pg-python/blob/main/docs/vector_store.ipynb)
Expand Down
30 changes: 30 additions & 0 deletions src/oss/python/integrations/vectorstores/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,35 @@ vector_store = ElasticsearchStore(
)
```

</Accordion>
<Accordion title="Google AlloyDB">

<CodeGroup>
```bash pip
pip install -qU langchain-google-alloydb-pg
```

```bash uv
uv add langchain-google-alloydb-pg
```
</CodeGroup>
```python
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore

engine = AlloyDBEngine.from_instance(
project_id="my-project",
region="us-central1",
cluster="my-cluster",
instance="my-instance",
database="my-database",
)

vector_store = AlloyDBVectorStore.create_sync(
engine=engine,
table_name="my_vectors",
embedding_service=embeddings
)
```
</Accordion>
<Accordion title="Milvus">

Expand Down Expand Up @@ -832,6 +861,7 @@ vector_store = ValkeyVectorStore(
| [`CouchbaseSearchVectorStore`](/oss/integrations/vectorstores/couchbase) | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
| [`DatabricksVectorSearch`](/oss/integrations/vectorstores/databricks_vector_search) | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
| [`ElasticsearchStore`](/oss/integrations/vectorstores/elasticsearch) | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
| [`Google AlloyDB`](/oss/integrations/vectorstores/google_alloydb) | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
| [`InMemoryVectorStore`](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore) | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ |
| [`LambdaDB`](/oss/integrations/vectorstores/lambdadb) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| [`Milvus`](/oss/integrations/vectorstores/milvus) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Expand Down
Loading