mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 19:51:02 +02:00
Fixed typos
This commit is contained in:
parent
793f986b06
commit
1a46d1aeae
1 changed files with 3 additions and 3 deletions
|
|
@ -50,10 +50,10 @@ class Processor(DocumentEmbeddingsStoreService):
|
||||||
|
|
||||||
if collection != self.last_collection:
|
if collection != self.last_collection:
|
||||||
|
|
||||||
if not self.client.collection_exists(collection):
|
if not self.qdrant.collection_exists(collection):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.client.create_collection(
|
self.qdrant.create_collection(
|
||||||
collection_name=collection,
|
collection_name=collection,
|
||||||
vectors_config=VectorParams(
|
vectors_config=VectorParams(
|
||||||
size=dim, distance=Distance.COSINE
|
size=dim, distance=Distance.COSINE
|
||||||
|
|
@ -65,7 +65,7 @@ class Processor(DocumentEmbeddingsStoreService):
|
||||||
|
|
||||||
self.last_collection = collection
|
self.last_collection = collection
|
||||||
|
|
||||||
self.client.upsert(
|
self.qdrant.upsert(
|
||||||
collection_name=collection,
|
collection_name=collection,
|
||||||
points=[
|
points=[
|
||||||
PointStruct(
|
PointStruct(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue