Skip to content

Conversation

@baberabb
Copy link
Contributor

This PR makes two main changes:

  1. ContextSampler now only samples documents from an iterator - it returns docs, nothing more.
  2. build_qa_turn() handles all prompt formatting - a single method that takes a question/choice/answer and returns the formatted messages, making it obvious where delimiters, prefixes, and chat roles are applied

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