Similarity_search() is not a valid Streamlit command

Hi
After writing following code , I am getting following error during run
main_placefolder.text(“Search Result based on Query String”)
strlet_query1 = query1
result_docs = db.similarity_search(strlet_query1)
stream_let_doc = result_docs[0].page_content
st.header("Answer 1 ")
st.subheader(stream_let_doc)

What do you do to run that code?

@Thanks Goyo
I identified problem variable db was wrongly assigned with object.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.