Skip to content
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

Foundation pieces for more capable assistants #61

Merged
merged 18 commits into from
Dec 20, 2023
Merged

Conversation

brainlid
Copy link
Owner

@brainlid brainlid commented Dec 20, 2023

New Features

  • adds LangChain.Chains.RoutingChain - first-pass LLM chain to select the best route to take given the user's initial prompt
  • adds LangChain.Chains.TextToTitleChain - turn the user's prompt into a title for the conversation

Minor updates

  • ChainResult supports additional common return data structures
  • Renamed LLMChain.function_map to LLMChain._function_map to indicate it is an internal data structure

Notes or TODO items

* main:
  Lessen retry delay to 300ms
  Add retry strategy to OpenAI Chat API requests
* main:
  preparation for v0.1.3 release
* main:
  added Utils.ChainResult module - helper functions for working with an LLMChain's result value
* main:
  expanded comment
  Pass api_key to request if present in chat
  Allow passing api_key to ChatOpenAI
* main:
  updated changelog
  prep for new v.0.1.4 release
  document overriding the api endpoint
  allow overriding OpenAI compatible API endpoint
  Update Req to 0.4.7
  Update Req to version 0.46
* main:
  updated for v0.1.5 release
  updated for v0.1.5 release
  update to 0.1.5
  upgrade Req to v0.4.8 - contains a retry fix
  fix: remove unecessary api_key from json payload
* main:
  prep for v0.1.6
  Fix Req retry delay
- renamed `function_map` to `_function_map` to indicate it is an internal-only data structure
- added `verbose_deltas` as separate flag. Exclude the very noisy deltas from verbose output
- simple helper chain for summarizing a user's prompt into a title
- support returning fake error responses
- important for more complex assistants
- first pass operation classifies which direction the user's prompt should go
- return the desired chain for performing the user's request
* main:
  removed incorrect comment - the initial API key code was based on an Elixir Stripe library.
@brainlid brainlid merged commit 498d466 into main Dec 20, 2023
1 check passed
@brainlid brainlid deleted the me-starting-assistant branch December 20, 2023 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant