Add RAG postprocessing step; config.yml messages; chat-fastspi.py improvements; Chainlit 2.0#63
Merged
adamjohnwright merged 11 commits intomainfrom Jan 16, 2025
Merged
Conversation
…onse with "Try Again" button
GFJHogue
commented
Jan 16, 2025
| chat_profile: str = cl.user_session.get("chat_profile") | ||
| initial_message = ( | ||
| f"Welcome to {chat_profile}, your interactive chatbot for exploring Reactome!" | ||
| " Ask me about biological pathways and processes." |
Collaborator
Author
There was a problem hiding this comment.
moved this to config.yml
GFJHogue
commented
Jan 16, 2025
| <h1>$error_title</h1> | ||
| <p>If you believe this to be in error, please contact the maintainers to report an issue.</p> | ||
| <form action="{CHAINLIT_URI}" method="get"> | ||
| <button type="submit">Try again</button> |
Collaborator
Author
There was a problem hiding this comment.
Looking for feedback on this message. Should we include an email or link?
GFJHogue
commented
Jan 16, 2025
| async def captcha_page(request: Request): | ||
|
|
||
| host = request.headers.get('X-Forwarded-Host', request.headers.get('Host')) | ||
| form_action = f"https://{host}{CHAINLIT_URI}/verify_captcha" |
Collaborator
Author
There was a problem hiding this comment.
reverted this since the new HTTPS middleware redirect should handle this
adamjohnwright
approved these changes
Jan 16, 2025
| <h1>$error_title</h1> | ||
| <p>If you believe this to be in error, please contact the maintainers to report an issue.</p> | ||
| <form action="{CHAINLIT_URI}" method="get"> | ||
| <button type="submit">Try again</button> |
| async def captcha_page(request: Request): | ||
|
|
||
| host = request.headers.get('X-Forwarded-Host', request.headers.get('Host')) | ||
| form_action = f"https://{host}{CHAINLIT_URI}/verify_captcha" |
GFJHogue
pushed a commit
that referenced
this pull request
Apr 17, 2025
Add RAG postprocessing step; config.yml messages; chat-fastspi.py improvements; Chainlit 2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Features:
postprocessnode to main graph for upcoming completeness check / web search enhancement.additional_textto the state. When non-empty, sends the text as an additional message after graph execution completes.config.ymlto allow for configurable static messages triggered by various events.config_default.ymlfor examples. This file is used as a fallback ifconfig.ymlisn't present.Updates:
.chainlit/config.tomlpublic/theme.jsonFixes / Improvements: