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

Sequential chain with QnA #52

Merged
merged 7 commits into from
Nov 5, 2023
Merged

Sequential chain with QnA #52

merged 7 commits into from
Nov 5, 2023

Conversation

TesAnti
Copy link
Collaborator

@TesAnti TesAnti commented Nov 5, 2023

First model gets a pet name in free form. It's very hard(if not impossible) to prompt it in the way so it returns only name.
the resulting sentence would be something like this: I think the best pet name is Bob
Then by providing several examples we are asking model to extract only the pet name. And it works perfectly.

# Conflicts:
#	src/libs/LangChain.Core/Chains/RetrievalQA/BaseRetrievalQaChain.cs
#	src/libs/LangChain.Core/Chains/RetrievalQA/BaseRetrievalQaChainInput.cs
#	src/libs/LangChain.Core/Indexes/VectorStoreIndexWrapper.cs
#	src/tests/LangChain.Providers.LLamaSharp.IntegrationTests/LLamaSharpTests.cs
# Conflicts:
#	src/tests/LangChain.Providers.LLamaSharp.IntegrationTests/LLamaSharpTests.cs
@HavenDV HavenDV enabled auto-merge (squash) November 5, 2023 19:50
@HavenDV HavenDV merged commit ea43091 into tryAGI:main Nov 5, 2023
1 check passed
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.

2 participants