File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ def query_similar_docs(
9797 conn = get_db_conn ()
9898 elif vector_store_name == "pinecone" :
9999 # in pipeline runs, always use staging index
100- pinecone_index = get_pinecone_client (model_version_name_or_id = "staging" )
100+ pinecone_index = get_pinecone_client (
101+ model_version_name_or_id = "staging"
102+ )
101103 else :
102104 es_client = get_es_client ()
103105
Original file line number Diff line number Diff line change @@ -831,14 +831,18 @@ def _index_generator_postgres(documents: str) -> None:
831831 conn .close ()
832832
833833
834- def _index_generator_pinecone (documents : str , model_version_name_or_id : str ) -> None :
834+ def _index_generator_pinecone (
835+ documents : str , model_version_name_or_id : str
836+ ) -> None :
835837 """Generates a Pinecone index for the given documents.
836838
837839 Args:
838840 documents (str): JSON string containing the documents to index.
839841 model_version (str): Name of the model version.
840842 """
841- index = get_pinecone_client (model_version_name_or_id = model_version_name_or_id )
843+ index = get_pinecone_client (
844+ model_version_name_or_id = model_version_name_or_id
845+ )
842846
843847 # Load documents
844848 docs = json .loads (documents )
You can’t perform that action at this time.
0 commit comments