minimal

command module
v0.0.0-...-0e92288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Minimal example

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!

How to run

  1. Set the OpenAI API key in your env as OPENAI_API_KEY
  2. Run the example: go run .

Output

ID: 1
Similarity: 0.6833369
Content: The sky is blue because of Rayleigh scattering.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL