Skip to content

Commit

Permalink
docs: Edit Auto-configuration Example (#1169)
Browse files Browse the repository at this point in the history
* docs: Edit Auto-configuration Example

* docs: Edit Azure Example

* docs: Edit Oracle Example
  • Loading branch information
cyPark95 authored Aug 12, 2024
1 parent 568d90a commit e02c691
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e02c691

Please sign in to comment.