Skip to content

Commit

Permalink
change embedding settings and fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: charliehuang09 <charliehuang09@gmail.com>
  • Loading branch information
charliehuang09 committed Mar 26, 2024
1 parent 1631acf commit d70fc93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/encode_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self,
self.do_parent_document = do_parent_document

self.embeddings_model = OpenAIEmbeddings(
model="text-embedding-3-large", dimensions=1536)
model="text-embedding-3-large", dimensions=3072)

self.text_splitter = TokenTextSplitter(chunk_size=chunk_size,
chunk_overlap=0)
Expand Down
2 changes: 1 addition & 1 deletion scripts/qdrant_upsert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def qdrant_upsert(path, collection_name, port=6333):
pass
client.create_collection(collection_name=collection_name,
vectors_config=models.VectorParams(
size=1536, distance=models.Distance.COSINE))
size=3072, distance=models.Distance.EUCLID))

data = np.load(path, allow_pickle=True)

Expand Down

0 comments on commit d70fc93

Please sign in to comment.