Update app.py
Browse files57 unmodified lines585960616263646511 unmodified lines777879808182838457 unmodified linesembeddings=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)st.write("π Data loaded into Pinecone for quick searching!")st.sidebar.success("π Data successfully loaded into Pinecone!")11 unmodified linesembeddings=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)st.write("π Database retrieval is done!")relavant_docs=get_similar_docs(index,prompt,document_count)57 unmodified lines5859606162636411 unmodified lines7677787980818257 unmodified linesembeddings=create_embeddings()st.write("π§ Model ready to understand your queries!")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 linesembeddings=create_embeddings()st.write("π§ Model ready to understand your queries!")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