langchain_community.retrievers.pinecone_hybrid_search
.create_indexΒΆ
- langchain_community.retrievers.pinecone_hybrid_search.create_index(contexts: List[str], index: Any, embeddings: Embeddings, sparse_encoder: Any, ids: Optional[List[str]] = None, metadatas: Optional[List[dict]] = None, namespace: Optional[str] = None) None [source]ΒΆ
Create an index from a list of contexts.
It modifies the index argument in-place!
- Parameters
contexts (List[str]) β List of contexts to embed.
index (Any) β Index to use.
embeddings (Embeddings) β Embeddings model to use.
sparse_encoder (Any) β Sparse encoder to use.
ids (Optional[List[str]]) β List of ids to use for the documents.
metadatas (Optional[List[dict]]) β List of metadata to use for the documents.
namespace (Optional[str]) β
- Return type
None