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

DST-199: base code for chunking #24

Merged
merged 14 commits into from
May 22, 2024
Merged

DST-199: base code for chunking #24

merged 14 commits into from
May 22, 2024

Conversation

ccheng26
Copy link
Collaborator

Ticket

Resolves DST-199

Changes

  • refactored llm client code to return instance or message given client
  • added chunking code

Context for reviewers

Results using NLTK logged here

Testing

Testing instructions and expected behavior:

  1. pip install -r requirements.txt
  2. Update .env
  3. run python chunking.py

04-call-summaries/chunking.py Outdated Show resolved Hide resolved
04-call-summaries/chunking.py Show resolved Hide resolved
04-call-summaries/llm.py Outdated Show resolved Hide resolved
Comment on lines +14 to +15
if text_splitter_choice == "2":
text_splitter = NLTKTextSplitter()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the current code always uses "2", so the chunk_size and chunk_overlap are not used.

04-call-summaries/llm.py Outdated Show resolved Hide resolved
@ccheng26 ccheng26 marked this pull request as ready for review May 22, 2024 15:07
@ccheng26 ccheng26 merged commit 7842f8d into main May 22, 2024
1 check passed
@ccheng26 ccheng26 deleted the DST-199-baseCodeForChunking branch May 22, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants