Skip to content

Commit

Permalink
fix ddl
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Apr 17, 2024
1 parent 6537e7a commit 7c1b14a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ddl/override/bitdeer/1-initial-data.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
DROP TABLE llamaindex_document_chunk_node_default;
CREATE TABLE llamaindex_document_chunk_node_default
(
id BINARY(16) NOT NULL,
hash VARCHAR(256) NOT NULL,
text TEXT NOT NULL,
metadata JSON NOT NULL,
embedding VECTOR<FLOAT>(1024) NULL COMMENT 'hnsw(distance=cosine)',
index_id INT NOT NULL,
document_id INT NOT NULL,
PRIMARY KEY (id),
KEY idx_ldcn_on_index_id_document_id (index_id, document_id),
FOREIGN KEY fk_ldcn_on_index_id (index_id) REFERENCES `index` (id),
FOREIGN KEY fk_ldcn_on_document_id (document_id) REFERENCES `document` (id)
);

--
-- Default Index Config
--
Expand Down

0 comments on commit 7c1b14a

Please sign in to comment.