@@ -100,7 +100,7 @@ vector_store = Hazelcast(embeddings, collection_name=name, client=client)
100100== Updating the Vector Store
101101
102102Once the vector store is created, you can start adding LangChain documents or string data into it.
103- While adding the data, you have the option to associate identifiers and metadata with them .
103+ While adding the data, you have the option to associate identifiers and metadata with it .
104104
105105Hazelcast vector store has two methods to add data, `add_documents` and `add_texts`.
106106Using the former, you can add `langchain_core.documents.Document` objects, and using the latter, you can add strings.
@@ -130,10 +130,10 @@ b235643b-62c0-4039-9856-1493f921e1a4
130130----
131131
132132`Hazelcast.add_texts` method returns the IDs of the added texts.
133- If the IDs were not provided to the `add_texts` method, then they are automatically genereated , like in the example above.
133+ If the IDs were not provided to the `add_texts` method, then they are automatically generated , like in the example above.
134134
135135You can provide the IDs manually by passing them in the `ids` parameter.
136- That may be useful in case you would like to update data instead of extending the vector store.
136+ This is useful when you want to update data instead of extending the vector store.
137137
138138[source,python]
139139----
@@ -164,7 +164,7 @@ ids = vector_store.add_texts(
164164)
165165----
166166
167- In case you have `langchain_core.documents.Document` objects, you can use the `add_documents` methods to add them to the vector store:
167+ If you have `langchain_core.documents.Document` objects, you can use the `add_documents` methods to add them to the vector store:
168168
169169[source,python]
170170----
@@ -192,8 +192,8 @@ ids = vector_store.add_documents(docs)
192192----
193193
194194`Hazelcast` vector store has two class methods that combine creating the vector store and adding texts or documents to it.
195- Those are `Hazelcast.from_texts` and `Hazelcast.from_documents` methods respectively.
196- Calling these methods return the `Hazelcast` vector store instance.
195+ These are the `Hazelcast.from_texts` and `Hazelcast.from_documents` methods respectively.
196+ Calling these methods returns the `Hazelcast` vector store instance.
197197
198198Here is an example that uses the `Hazelcast.from_texts` method:
199199[source,python]
@@ -236,7 +236,7 @@ docs = vector_store.get_by_ids([
236236----
237237
238238To delete some or all Documents, you can use the `delete` method.
239- It deletes the Documents with the given IDs if one or more IDs provided, or deletes all Documents if no IDs are provided.
239+ It deletes the Documents with the given IDs if one or more IDs are provided, or deletes all Documents if no IDs are provided.
240240This method always returns `True`.
241241The example below deletes only two Documents:
242242
0 commit comments