You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least with Ollama ("llama3.1" or "llama3.2"), the CustomerSupport sample is not working.
The summary works, but the issues is in the chat prompt. There is string.Join("\n", searchResults) in the prompt. The searchResults are ManualChunks. ToString of ManualChunk returns just "ManualChunk", so there is no real context.
So the message to be passed to CompleteAsync ends up being:
Using the following data sources as context, answer the user query: Summary?
## Context
ManualChunk
ManualChunk
ManualChunk
ManualChunk
ManualChunk
Response:
Which amounts to no real context for the LLM (the LLM complains even that it only sees some "ManualChunk" texts as context).
At least with Ollama ("llama3.1" or "llama3.2"), the CustomerSupport sample is not working.
The summary works, but the issues is in the chat prompt. There is
string.Join("\n", searchResults)
in the prompt. ThesearchResults
areManualChunk
s.ToString
ofManualChunk
returns just "ManualChunk", so there is no real context.So the
message
to be passed toCompleteAsync
ends up being:Which amounts to no real context for the LLM (the LLM complains even that it only sees some "ManualChunk" texts as context).
Code
ai-samples/src/chat/CustomerSupport/Utils.cs
Lines 155 to 170 in 05a832f
The text was updated successfully, but these errors were encountered: