-
Notifications
You must be signed in to change notification settings - Fork 2
Add additional context #83
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
Conversation
|
|
||
| context = "" | ||
| for db_name, db_context in db_contexts.items(): | ||
| for db_name, db_context in session.db_context.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not session.db.context? Is it safe to assume every connector will have a .context field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, we should add more structure to how we store added databases and dataframes in Session. Currently, it's all dicts so there is no .context field.
| for df_name, df_context in df_contexts.items(): | ||
| for df_name, df_context in session.df_context.items(): | ||
| context += f"## Context for DF {df_name} (fully qualified name 'temp.main.{df_name}')\n\n{df_context}\n\n" | ||
| for idx, additional_ctx in enumerate(session.additional_context, start=1): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How long could session.additional_context sequence pontentially be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently there is no limit. In practice, the maximum context size of the LLM is the limit.
Rauf-Kurbanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All cool, just minor comments
Fixes #59 with a new method: