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

fix llama2 in query engines #6969

Merged
merged 5 commits into from
Jul 19, 2023

Conversation

logan-markewich
Copy link
Collaborator

Description

Llama2 needs some very specific formatting. Our chat endpoints used the proper formatting, but the completion endpoints did not.

This PR adds that, plus a notebook, plus fixing the kwarg names for max_length vs. context_window

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Added new notebook (that tests end-to-end)
  • I stared at the code and made sure it makes sense

context_window=self._context_window, num_output=self._max_tokens
context_window=self._context_window,
num_output=self._max_tokens,
model_name=self._model,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a valid field for LLMMetadata?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, merged a thingy today

@logan-markewich logan-markewich merged commit 1033303 into main Jul 19, 2023
8 checks passed
@logan-markewich logan-markewich deleted the logan/replicate_completion_formatting branch July 19, 2023 23:48
junying1 pushed a commit to junying1/llama_index that referenced this pull request Jul 20, 2023
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

2 participants