Skip to content

Commit

Permalink
Add Chain of Thought feature to Chatbot
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jan 1, 2025
1 parent c63d5cb commit 9eae9ab
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 43 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Releases

## 0.15.11 - Chain of Thought

* Chatbot - Add Chain of Thought (CoT) thinking option using the `/think on` or `/think off` toggles to the UI. When activated, queries will be passed through an out-of-band CoT loop to allow the LLM to thoughtfully explore answer and then provide a conclusion summary to the user. Set environmental variable "THINKING" to "true" to default all conversations to CoT mode.

## 0.15.10 - Bug Fix

* Chatbot - Fix error handling bug used to auto-detect max content length of LLM. Updated user input UI rendering to better handle indention.
Expand Down
6 changes: 5 additions & 1 deletion agents/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from pypdf import PdfReader

# Version
VERSION = "v0.0.1"
VERSION = "v0.0.2"
DEBUG = False

def log(text):
Expand Down Expand Up @@ -427,6 +427,10 @@ def buffer(s):

buffer("\n---")

# Print version of news
buffer(f"Newsbot: {VERSION} - {current_date.strftime('%B %-d, %Y')}")
buffer("\n")

# Output
if EMAIL_FORMAT:
# Clean up output for email
Expand Down
Loading

0 comments on commit 9eae9ab

Please sign in to comment.