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

Separate doc filtration and reasoning LLMs #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasonkneen
Copy link

@jasonkneen jasonkneen commented Feb 3, 2025

Fixes #1

Separate the document filtration and reasoning LLMs into two distinct models.

  • Python Changes:

    • Add a new parameter filtration_model to the ReagClient constructor in python/src/reag/client.py.
    • Update the query method to use the filtration_model for document filtration and the model for generating the final answer.
    • Update python/README.md to reflect the changes in the ReagClient class and the new two-step process.
  • TypeScript Changes:

    • Add a new parameter filtrationModel to the ReagClient constructor in typescript/src/client.ts.
    • Update the query method to use the filtrationModel for document filtration and the model for generating the final answer.
    • Update typescript/README.md to reflect the changes in the ReagClient class and the new two-step process.

For more details, open the Copilot Workspace session.

Fixes #1

Separate the document filtration and reasoning LLMs into two distinct models.

* **Python Changes:**
  - Add a new parameter `filtration_model` to the `ReagClient` constructor in `python/src/reag/client.py`.
  - Update the `query` method to use the `filtration_model` for document filtration and the `model` for generating the final answer.
  - Update `python/README.md` to reflect the changes in the `ReagClient` class and the new two-step process.

* **TypeScript Changes:**
  - Add a new parameter `filtrationModel` to the `ReagClient` constructor in `typescript/src/client.ts`.
  - Update the `query` method to use the `filtrationModel` for document filtration and the `model` for generating the final answer.
  - Update `typescript/README.md` to reflect the changes in the `ReagClient` class and the new two-step process.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/superagent-ai/reag/issues/1?shareId=XXXX-XXXX-XXXX-XXXX).
@homanp
Copy link
Collaborator

homanp commented Feb 3, 2025

@jasonkneen thanks for the contribution will check test and merge.

@homanp
Copy link
Collaborator

homanp commented Feb 6, 2025

@jasonkneen mind fixing the merge conflicts?

@homanp homanp added the enhancement New feature or request label Feb 6, 2025
Copy link
Collaborator

@homanp homanp left a comment

Choose a reason for hiding this comment

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

@jasonkneen mind fixing the conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate doc filtration and reasoning LLMs
2 participants