File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ class IndexType(Enum):
634634@step (enable_cache = False )
635635def index_generator (
636636 documents : str ,
637- index_type : IndexType = IndexType .POSTGRES ,
637+ index_type : IndexType = IndexType .PINECONE ,
638638) -> None :
639639 """Generates an index for the given documents.
640640
@@ -869,7 +869,7 @@ def _index_generator_pinecone(documents: str) -> None:
869869 "values" : doc ["embedding" ],
870870 "metadata" : {
871871 "filename" : doc ["filename" ],
872- "parent_section" : doc ["parent_section" ],
872+ "parent_section" : doc ["parent_section" ] or "" ,
873873 "url" : doc ["url" ],
874874 "page_content" : doc ["page_content" ],
875875 "token_count" : doc ["token_count" ]
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ def find_vectorstore_name() -> str:
536536 return model_version .run_metadata ["vector_store" ]["name" ]
537537 except KeyError :
538538 logger .error ("Vector store metadata not found in model version" )
539- return "pgvector " # Fallback to default
539+ return "pinecone " # Fallback to default
540540
541541
542542def rerank_documents (
You can’t perform that action at this time.
0 commit comments