Skip to content

Commit 31c5ddd

Browse files
committed
Replace chromadb with pinecone
1 parent 69945c6 commit 31c5ddd

6 files changed

Lines changed: 384 additions & 957 deletions

File tree

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ def generate_summary_with_spinner(documents: dict[str, list[Document]]) -> dict[
9292
global_documents = load_files_with_spinner(uploaded_files)
9393
global_embeddings = embed_documents_with_spinner(global_documents)
9494
global_keywords = extract_keywords_with_spinner(global_embeddings)
95-
global_summaries = generate_summary_with_spinner(global_documents)
95+
# global_summaries = generate_summary_with_spinner(global_documents)
9696

9797
# Display the keywords and summaries
9898
for doc_name, doc_keywords in global_keywords.items():
9999
st.header(doc_name)
100100
st.subheader("Keywords")
101101
st.write(doc_keywords)
102-
st.subheader("Summary")
103-
st.write(global_summaries[doc_name])
102+
# st.subheader("Summary")
103+
# st.write(global_summaries[doc_name])
104104

105105
st.success('Summarization completed.')

0 commit comments

Comments
 (0)