Code Cleanup and Quality of Life

Checks to make sure repo is indexed before generating code.
Don't generate tests for changes to tests.
Remove unused code.
Fix bootstrapping issue with langchaingo tables.
This commit is contained in:
2025-04-20 08:31:26 -04:00
parent 4b8b8132fd
commit 25f8cae8cb
9 changed files with 282 additions and 256 deletions

View File

@@ -4,3 +4,19 @@ CREATE TABLE IF NOT EXISTS repos (
repo_path TEXT NOT NULL,
UNIQUE(repo_hash, repo_path)
);
CREATE TABLE langchain_pg_collection (
name VARCHAR UNIQUE,
cmetadata JSON,
uuid UUID PRIMARY KEY
);
CREATE TABLE langchain_pg_embedding (
collection_id UUID REFERENCES langchain_pg_collection ON DELETE CASCADE,
embedding VECTOR,
document VARCHAR,
cmetadata JSON,
uuid UUID PRIMARY KEY
);
CREATE INDEX langchain_pg_embedding_collection_id ON langchain_pg_embedding (collection_id);