Explore chromem-go usage examples
mainThe chromem-go repository provides several example implementations to demonstrate different use cases for the vector database:
- Minimal Example: A bare-bones implementation using OpenAI for embeddings. Best for understanding the core API with minimal boilerplate.
- RAG Wikipedia Ollama: A Retrieval Augmented Generation (RAG) application for question answering. It uses Wikipedia lead sections as a knowledge base and runs both the embedding model and the LLM via Ollama, demonstrating a fully offline RAG setup.
- Semantic Search arXiv OpenAI: A semantic search application that indexes approximately 5,000 arXiv papers (Computer Science - Computation and Language category) using OpenAI embeddings.
- WebAssembly (WASM): Demonstrates how to compile
chromem-goto WebAssembly to enable vector database functionality directly in a web browser via JavaScript. - S3 Export/Import: Shows how to handle database persistence by exporting the database to and importing it from S3-compatible blob storage services.