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

Support more chain types, implement vector search powered by huggingface inference api #34

Merged
merged 7 commits into from
May 25, 2023

Conversation

logancyang
Copy link
Owner

@logancyang logancyang commented May 25, 2023

  • Added ChainFactory for more singleton chain instances of different types
  • Added logic for vector search powered by Huggingface Inference API, will ship this in the next minor release.

Problems encountered:

  • Streaming causes ConversationalRetrievalQAChain to always start answers with a rephrased question Streaming causes LLM to always start answers with a rephrased version of the question langchain-ai/langchainjs#754
    • Need to wait and test more and wait for this fix to launch "Use Active Note as Context" for long notes.
  • Refused to set unsafe header "User-Agent" error, happens only when there's non-streaming ChatOpenAI. This is unfortunate because LangchainJS is using openai-node which causes this error. The recommended way is to have a server that uses LangchainJS and openai-node, but this is a pure client app. Avoid non-streaming for now.

@logancyang logancyang merged commit ab2b5e5 into master May 25, 2023
@logancyang logancyang deleted the support-more-chain-types branch May 25, 2023 22:49
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.

None yet

1 participant