amosproj / amos2024ss06-health-ai-framework

Ailixir is an application that utilises LLMs and custom user input to generate AI agent prototypes specialised in fields such as health, economics, physics etc. The prototypes enable the user, which is an entrepreneur-developer, to compare the results produced by different LLMs.
MIT License
7 stars 1 forks source link

Create option to change LLM #177

Closed tubamos closed 2 months ago

tubamos commented 3 months ago

Dependencies

Domain

app backend, data pipeline, app frontend

Description

Implement backend functionality to support changing from GPT to Gemini and vice versa through a dropdown menu. This involves updating the LangChain pipeline to handle the switch dynamically based on user selection, ensuring the transition takes place without hickups.

Add backend support for changing the underlying LLM. Initially we want to toggle between GPT and Gemini via the dropdown menu that has already been implemented in backlog item #175. To achieve this the LangChain pipeline needs to be updated so that it recognizes and applies the user-selected LLM for query processing.

User Story

As a user, I want to dynamically change the underlying LLM of the agent from a dropdown menu, from GPT to Gemini and vice versa, so that I can compare answers generated by different models like GPT and Gemini.

Acceptance Criteria

Definition of Done

preetvadaliya commented 3 months ago

@tubamos ,

We can use any LLM from this docs https://python.langchain.com/v0.2/docs/integrations/llms/

Note:

  1. LLM should not need hosting.
  2. Most of them can be connect using API keys.