Class CouchbaseEmbeddingStore
java.lang.Object
dev.langchain4j.store.embedding.couchbase.CouchbaseEmbeddingStore
- All Implemented Interfaces:
EmbeddingStore<TextSegment>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseEmbeddingStore(String clusterUrl, String username, String password, String bucketName, String scopeName, String collectionName, String searchIndexName, Integer dimensions) Creates an instance of CouchbaseEmbeddingStoreCouchbaseEmbeddingStore(String clusterUrl, String username, String password, String bucketName, String scopeName, String collectionName, String searchIndexName, Integer dimensions, Integer bucketTimeout) Creates an instance of CouchbaseEmbeddingStore -
Method Summary
Modifier and TypeMethodDescriptionadd(Embedding embedding, TextSegment textSegment) voidvoidbuilder()voidvoidremoveAll(Collection<String> ids) search(EmbeddingSearchRequest request) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmbeddingStore
addAll, generateIds, remove, removeAll
-
Constructor Details
-
CouchbaseEmbeddingStore
public CouchbaseEmbeddingStore(String clusterUrl, String username, String password, String bucketName, String scopeName, String collectionName, String searchIndexName, Integer dimensions) Creates an instance of CouchbaseEmbeddingStore- Parameters:
clusterUrl- the url of the couchbase cluster to be used by the storeusername- username on the clusterpassword- password on the clusterbucketName- name of a cluster bucket in which to store the embeddingsscopeName- name of a scope in the bucket in which to store the embeddingscollectionName- name of a collection in the scope in which to store the embeddingssearchIndexName- name of the FTS index to be used for searching embeddingsdimensions- expected size (dimensionality) of vectors that will be stored
-
CouchbaseEmbeddingStore
public CouchbaseEmbeddingStore(String clusterUrl, String username, String password, String bucketName, String scopeName, String collectionName, String searchIndexName, Integer dimensions, Integer bucketTimeout) Creates an instance of CouchbaseEmbeddingStore- Parameters:
clusterUrl- the url of the couchbase cluster to be used by the storeusername- username on the clusterpassword- password on the clusterbucketName- name of a cluster bucket in which to store the embeddingsscopeName- name of a scope in the bucket in which to store the embeddingscollectionName- name of a collection in the scope in which to store the embeddingssearchIndexName- name of the FTS index to be used for searching embeddingsdimensions- expected size (dimensionality) of vectors that will be storedbucketTimeout- bucket connection timeout
-
-
Method Details
-
add
- Specified by:
addin interfaceEmbeddingStore<TextSegment>
-
add
- Specified by:
addin interfaceEmbeddingStore<TextSegment>
-
add
- Specified by:
addin interfaceEmbeddingStore<TextSegment>
-
addAll
- Specified by:
addAllin interfaceEmbeddingStore<TextSegment>
-
addAll
- Specified by:
addAllin interfaceEmbeddingStore<TextSegment>
-
removeAll
- Specified by:
removeAllin interfaceEmbeddingStore<TextSegment>
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceEmbeddingStore<TextSegment>
-
search
- Specified by:
searchin interfaceEmbeddingStore<TextSegment>
-
builder
-