mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 12:11:02 +02:00
Use Cosine similarity (#209)
This commit is contained in:
parent
d6cdce8391
commit
8d326d34b3
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class Processor(Consumer):
|
||||||
self.client.create_collection(
|
self.client.create_collection(
|
||||||
collection_name=collection,
|
collection_name=collection,
|
||||||
vectors_config=VectorParams(
|
vectors_config=VectorParams(
|
||||||
size=dim, distance=Distance.DOT
|
size=dim, distance=Distance.COSINE
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue