initial prompt of store-py
This commit is contained in:
parent
9903cafafb
commit
97b0f9b64f
@ -1,3 +1,6 @@
|
||||
|
||||
<<
|
||||
using python, create a new project that will utilize a vector store database to create interlinked vector space knowledge graph as a "memory" function. It will be used by a realtime LLM to store and retrieve knowledge>>
|
||||
#Environment Setup
|
||||
cd vector_knowledge_graph
|
||||
python -m venv venv
|
||||
@ -9,7 +12,7 @@ pip install fastapi uvicorn openai psycopg2-binary sqlalchemy
|
||||
CREATE EXTENSION vector;
|
||||
CREATE TABLE knowledge (
|
||||
id SERIAL PRIMARY KEY,
|
||||
embedding vector(512) NOT NULL, -- assuming 512 dimensions for embeddings
|
||||
embedding vector(1536) NOT NULL, -- assuming 512 dimensions for embeddings; openai uses 1536
|
||||
metadata JSONB
|
||||
);
|
||||
CREATE INDEX ON knowledge USING ivfflat (embedding);
|
||||
|
Loading…
x
Reference in New Issue
Block a user