feat(r+py): Add querychat_system_prompt(prompt_path=) support; Export R's df_to_schema()#37
Conversation
…mpt to allow user to provide completely custom system prompt.
|
Hi @oacar, thanks for submitting a PR. I'm trying to understand what you are trying to do. Currently The default behavior of calling If you provide your own custom |
|
Hi @chendaniely, thank you for answering! Good points. Correct me if I am wrong but if you provide full system prompt yourself, you also need to pass the dataframe schema yourself then also figure out the templating. Since the In my use case, I took your system prompt file and removed the filtering related functionality and kept the rest same. I thought the easiest way to use this prompt without changing anything else was to provide a prompt_path argument. |
* main: docs(py,r): Initial Python and R documentation with index page (posit-dev#38)
|
Updates:
|
|
@oacar Does this look good to you? |
|
@schloerke looks great! Thanks for all the additional stuff. |
…it` for better autocomplete
querychat_system_prompt(prompt_path=) support; Export R's df_to_schema()
|
My invisible rubber duck approves. **Merging |
I wanted to have more control over default behavior of the system so I added
prompt_pathargument toquerychat_initandquerychat_system_promptto allow user to provide completely custom system prompt.