docs: Edit Auto-configuration Example (#1169)

* docs: Edit Auto-configuration Example

* docs: Edit Azure Example

* docs: Edit Oracle Example
This commit is contained in:
ChanYeong
2024-08-13 05:37:44 +09:00
committed by GitHub
parent 568d90a92a
commit e02c691cec
3 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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));

View File

@@ -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));