This is a minimal example that shows how chromem-go
works. For more sophisticated examples that use the persistent DB, locally running embedding models, a basic RAG pipeline, with more explanations in the README as well as code comments, check the other examples!
- Set the OpenAI API key in your env as
OPENAI_API_KEY
- Run the example:
go run .
ID: 1
Similarity: 0.6833369
Content: The sky is blue because of Rayleigh scattering.