Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.17 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.17 KB

Prerequisites

Setup

Run CockroachDB v24.2 (cockroachbeta is my local v24.2 binary)

cockroachbeta demo --insecure --no-example-database

Download a model of your choice (you don't need the prompt open)

ollama run llama3.1

Ask

go run ai_ml/rag/app/rag.go \
--url "postgres://root@localhost:26257?sslmode=disable" \
--question "list the bands who've had the most influence on black metal"

Load

go run ai_ml/rag/app/rag.go \
--url "postgres://root@localhost:26257?sslmode=disable" \
--link "https://robreid.io/pom"

Ask

go run ai_ml/rag/app/rag.go \
--url "postgres://root@localhost:26257?sslmode=disable" \
--question "list the bands who've had the most influence on black metal"

go run ai_ml/rag/app/rag.go \
--url "postgres://root@localhost:26257?sslmode=disable" \
--question "what are people in the black metal scene saying about puddle of mudd?"

Explore the table

SELECT
  LEFT(e.document, 40) AS document,
  LEFT(e.embedding::STRING, 40) AS embedding
FROM langchain_pg_embedding e;