# Run knowledge search on OpenSearch, with hybrid built in

> OpenSearch is now a supported vector database in Agno through agno.vectordb.opensearch. It handles vector, keyword, and hybrid search, in both sync and async variants, so you can back a knowledge base…

- Published: 2026-07-30
- Author: Pong Ng
- Categories: Changelog
- Canonical: https://www.agno.com/blog/run-knowledge-search-on-opensearch-with-hybrid-built-in
- Markdown: https://www.agno.com/blog/run-knowledge-search-on-opensearch-with-hybrid-built-in.md

OpenSearch is now a supported vector database in Agno through `agno.vectordb.opensearch`. It handles vector, keyword, and hybrid search, in both sync and async variants, so you can back a knowledge base with OpenSearch whether you want semantic retrieval, plain lexical matching, or the two combined.

```python
from agno.knowledge.knowledge import Knowledge
from agno.vectordb.opensearch import OpenSearch
from agno.vectordb.search import SearchType

vector_db = OpenSearch(
    index_name="agno_docs",
    search_type=SearchType.hybrid,
)

knowledge = Knowledge(vector_db=vector_db)
```

If OpenSearch already sits in your stack for search or log analytics, this lets you point an agent's knowledge at it instead of standing up a separate vector store to run alongside it. Install it with the `agno[opensearch]` extra, and the included `run_opensearch.sh` gets a local instance going for testing.

See the [OpenSearch db cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/07_knowledge/09_archive/vector_dbs/opensearch_db.py) for reference.
