Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update rag.py #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fingpt/FinGPT_FinancialReportAnalysis/utils/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ def embed_cluster_summarize_texts(
print(f"--Generated {len(all_clusters)} clusters--")

# Summarization
template = """Here is a sub-set of LangChain Expression Langauge doc.
template = """Here is a sub-set of LangChain Expression Language doc.

LangChain Expression Langauge provides a way to compose chain in LangChain.
LangChain Expression Language provides a way to compose chain in LangChain.

Give a detailed summary of the documentation provided.

Expand Down Expand Up @@ -409,4 +409,4 @@ def text_spliter(self, text, chunk_size_tok=2000, level=1, n_levels=3):
# - # Extend all_texts with the summaries from the current level
# - all_texts.extend(summaries)
# -
# - return all_texts
# - return all_texts