We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7d669c commit e91f610Copy full SHA for e91f610
src/flare_ai_rag/retriever/qdrant_collection.py
@@ -33,8 +33,9 @@ def generate_collection(
33
)
34
35
points = []
36
- for i, row in df_docs.iterrows():
37
- doc_id = str(i) # Convert index to string for ExtendedPointId compatibility
+ for idx, (_, row) in enumerate(
+ df_docs.iterrows(), start=1
38
+ ): # Using _ for unused variable
39
content = row["Contents"]
40
41
if not isinstance(content, str):
@@ -80,8 +81,10 @@ def generate_collection(
80
81
}
82
83
point = PointStruct(
- id=doc_id, vector=embedding, payload=payload
84
- ) # Using string ID
+ id=idx, # Using integer ID starting from 1
85
+ vector=embedding,
86
+ payload=payload,
87
+ )
88
points.append(point)
89
90
if points:
0 commit comments