Skip to main content

Weaviate

Open-source vector database with GraphQL API.

Setup

# Docker
docker run -d -p 8080:8080 semitechnologies/weaviate

pip install weaviate-client

Usage

from praisonai.persistence.factory import create_knowledge_store

store = create_knowledge_store("weaviate", url="http://localhost:8080")

store.create_collection("Documents", dimension=384)
store.insert("Documents", [doc])
results = store.search("Documents", query_embedding, limit=5)

Configuration

OptionDescription
urlWeaviate server URL
api_keyAPI key (for cloud)