Skip to content

Hallucination even with Four Entities in Schema #261

Answered by eyurtsev
mann2107 asked this question in Q&A
Discussion options

You must be logged in to vote

Reference the following guidelines to see if anything can be improved: https://eyurtsev.github.io/kor/guidelines.html

My main suggestions would be:

  • If working with multi-paragraph text, specify an input_formatter of "triple_quotes" when creating the chain.
  • If you're already providing object level examples, then get rid of the per field examples (those might just confuse the model). Try to feed the longer single paragraph example and build from there.
  • Print out the prompt: https://eyurtsev.github.io/kor/objects.html#what-s-the-actual-prompt to make sure that the prompt looks correct -- it would be wrong if there's a bug in how the examples were provided (e.g., extra dict literal specified…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eyurtsev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #260 on February 12, 2024 15:28.