-
Notifications
You must be signed in to change notification settings - Fork 18
start using markdown representation for read writable context (CF-687) #553
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…rkdown-read-writable-context
…rkdown-read-writable-context
this still WIP, most tests are expected to fail
PR Type
Enhancement, Tests
Description
Switch read/write context extraction to markdown
Introduce
CodeStringsMarkdown
with splitter and cacheUpdate
CodeOptimizationContext
model typeAdjust tests for markdown splitter and
__str__
Changes diagram
Changes walkthrough 📝
code_context_extractor.py
Switch to markdown context extraction
codeflash/context/code_context_extractor.py
extract_code_string_context_from_files
callextract_code_markdown_context_from_files
.__str__
of markdown context.__str__
models.py
Add markdown code strings model
codeflash/models/models.py
get_code_block_splitter
helperCodeStringsMarkdown
with cache and__str__
read_writable_code
type toCodeStringsMarkdown
Field
importtest_code_context_extractor.py
Update tests for markdown splitter
tests/test_code_context_extractor.py
get_code_block_splitter
read_writable_code.__str__