Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyaspimpalgaonkar committed Oct 5, 2024
1 parent 0cc4671 commit df6bd31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions py/core/providers/kg/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,15 @@ async def create_tables(self, project_name: str):
await self.execute_query(query)

# embeddings tables
# TODO: deprecating document ID
query = f"""
CREATE TABLE IF NOT EXISTS {self._get_table_name("entity_embedding")} (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
description TEXT NOT NULL,
extraction_ids UUID[] NOT NULL,
description_embedding vector({self.embedding_provider.config.base_dimension}) NOT NULL,
document_ids UUID[] NOT NULL,
collection_id UUID NOT NULL,
UNIQUE (name, collection_id)
document_id UUID NOT NULL,
UNIQUE (name, document_id)
);
"""

Expand Down

0 comments on commit df6bd31

Please sign in to comment.