Update app.py
Browse files57 unmodified lines58596061626162636411 unmodified lines76777880817980818257 unmodified lines
embeddings=create_embeddings() st.write("๐ง Model ready to understand your queries!") PINECONE_API=os.getenv('PINECONE_API') push_to_pinecone(st.session_state['Pinecone_API_Key'],constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings,chunks_data) push_to_pinecone('92f43d94-bf9c-42e6-bc0c-1f28b52c4f59',constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings,chunks_data) st.write("๐ Data loaded into Pinecone for quick searching!")
st.sidebar.success("๐ Data successfully loaded into Pinecone!")11 unmodified lines
embeddings=create_embeddings() st.write("๐ง Model ready to understand your queries!") PINECONE_API=os.getenv('PINECONE_API') index=pull_from_pinecone(st.session_state['Pinecone_API_Key'],constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings) index=pull_from_pinecone('92f43d94-bf9c-42e6-bc0c-1f28b52c4f59',constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings) st.write("๐ Database retrieval is done!")
relavant_docs=get_similar_docs(index,prompt,document_count)app.py+2-4