You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/development/vector_stores.md
+43-2Lines changed: 43 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,7 +373,6 @@ public class MyAgent extends Agent {
373
373
List<Document> documents = event.getDocuments();
374
374
// Process the retrieved documents...
375
375
}
376
-
}
377
376
```
378
377
379
378
{{</tab >}}
@@ -392,6 +391,10 @@ If you want to use vector stores not offered by the built-in providers, you can
392
391
393
392
The base classhandles text-to-vector conversion and provides the high-level query interface. You only need to implement the core vector search functionality.
394
393
394
+
{{< tabs "Custom Vector Store">}}
395
+
396
+
{{< tab "Python">}}
397
+
395
398
```python
396
399
classMyVectorStore(BaseVectorStore):
397
400
# Add your custom configuration fields here
@@ -409,4 +412,42 @@ class MyVectorStore(BaseVectorStore):
409
412
# - kwargs:Vector store-specific parameters
410
413
# -Returns:List of Document objects matching the search criteria
0 commit comments