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 duplicate code in RAG page #318

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Fix duplicate code in RAG page #318

merged 1 commit into from
Dec 20, 2024

Conversation

mrmer1
Copy link
Contributor

@mrmer1 mrmer1 commented Dec 19, 2024

This PR removes the following lines of code:

response = co.chat_stream(
    model="command-r-plus-08-2024",
    messages=messages,
    documents=documents,
    citation_options={"mode":"accurate"}
)

messages = [{"role": "user", "content": "Where do the tallest penguins live?"}]

Summary

The PR removes the code that sets the response variable to the result of the co.chat_stream function. This function is used to generate a response to a user's message, and the removed code sets the model, messages, documents, and citation options for the function.

Changes

  • The response variable is no longer set to the result of the co.chat_stream function.
  • The messages variable is no longer set to a list containing a user message.

@mrmer1 mrmer1 requested a review from a team as a code owner December 19, 2024 17:01
Copy link

@trentfowlercohere trentfowlercohere merged commit 4020f93 into main Dec 20, 2024
3 checks passed
@trentfowlercohere trentfowlercohere deleted the citation-modes-2 branch December 20, 2024 01:07
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