docs: Edit Auto-configuration Example (#1169)
* docs: Edit Auto-configuration Example * docs: Edit Azure Example * docs: Edit Oracle Example
This commit is contained in:
@@ -156,7 +156,7 @@ Add the documents to your vector store:
|
||||
|
||||
[source,java]
|
||||
----
|
||||
vectorStore.add(List.of(document));
|
||||
vectorStore.add(documents);
|
||||
----
|
||||
|
||||
And finally, retrieve documents similar to a query:
|
||||
|
||||
@@ -88,7 +88,7 @@ List<Document> documents = List.of(
|
||||
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
|
||||
|
||||
// Add the documents to Oracle Vector Store
|
||||
vectorStore.add(List.of(document));
|
||||
vectorStore.add(documents);
|
||||
|
||||
// Retrieve documents similar to a query
|
||||
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));
|
||||
|
||||
@@ -93,7 +93,7 @@ List <Document> documents = List.of(
|
||||
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
|
||||
|
||||
// Add the documents to Redis
|
||||
vectorStore.add(List.of(document));
|
||||
vectorStore.add(documents);
|
||||
|
||||
// Retrieve documents similar to a query
|
||||
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));
|
||||
|
||||
Reference in New Issue
Block a user