Find answers from the community

Updated 4 months ago

Warning

Dear @Logan M I am using Llamaindex - both the NLSWL
sql_database = SQLDatabase(engine, include_tables=["product_model"])

and the following:
# construct vector store
vector_store = PineconeVectorStore(pinecone_index=pinecone_index)
storage_context = StorageContext.from_defaults(vector_store=vector_store)

# Load documents from the specified directory
documents = SimpleDirectoryReader("./knowledge").load_data()

# reload an existing one
index = VectorStoreIndex.from_documents(
documents, storage_context=storage_context
)

# Add the documents to the index
index.from_documents(documents)

# Create a query engine from the index
reasoning_model = current_app.config['REASONING_MODEL']
Settings.llm = llamaOpenAI(temperature=0, model=reasoning_model)
query_engine = index.as_query_engine()

I'm now getting this warning, which I didn't earlier.

UserWarning: Valid config keys have changed in V2:
  • 'allow_population_by_field_name' has been renamed to 'populate_by_name'
  • 'smart_union' has been removed
Any guidance on what's causing this warning and how to fix, please?
L
1 comment
Seems like just a warning so I don't think it's a big deal. I think maybe this is coming from your version of sqlalchemy, but hard to say
Add a reply
Sign up and join the conversation on Discord