schema.py
(specifically DEFAULT_TEXT_NODE_TMPL
)? The template is used by the get_content
method on the TextNode
.index = VectorStoreIndex.from_documents(documents, storage_context=storage_context, service_context=service_context) index.storage_context.persist(persist_dir=f"embeddings/{directory}/weaviate/{embedding_model}/{embedding_mode}", fs=self.s3fs)
query_str="", custom_embedding_strs=[ "whatever" ]
in the QueryBundle
that is passed to a VectorIndexRetriever.retrieve
result in 0 nodes being found but giving query_str=""
a value suddenly result in nodes found? Based on the docs, I thought that query_str
isn't used for embedding-based queries?VectorIndexRetriever
. When I try to set the vector_store_query_mode
to VectorStoreQueryMode.TEXT_SEARCH
I get the following error: Invalid query mode: VectorStoreQueryMode.TEXT_SEARCH
persist
takes an optional fs
param)? Specifically, I'm trying to pass it a s3fs.S3FileSystem
so it can grab a PDF from my S3 bucket.num_outputs
refers to in the PromptHelper
class? Is that the number of tokens allowed in the output? The name is throwing me offRetrieverQueryEngine
query
method took an optional retriever_query_bundle
param in case you want your retriever's query to be different from the one the response synthesizer uses? I'm feeling like I'd like to be able to fine tune the retriever with the query bundle but I don't want to change what the synthesizer gets.