Skip to content

Conversation

@HendricksJudy
Copy link

Fixes #30

Add a new model for retrieval-augmented generation (RAG) to enable discussions based on specific medical literature.

  • New RAG Model: Add src/lib/health-data/parser/rag.ts to implement the RAG model for document and vision parsing.
  • Assistant Modes: Update src/app/api/assistant-modes/route.ts to include the RAG model in the assistant modes.
  • Chat Rooms: Modify src/app/api/chat-rooms/route.ts to import the RAG model for discussions.
  • Chat Setting Sidebar: Update src/components/chat/chat-setting-side-bar.tsx to reference the RAG model in the assistant mode settings.
  • Chat Sidebar: Update src/components/chat/chat-side-bar.tsx to reference the RAG model in the chat room settings.

Fixes OpenHealthForAll#30

Add a new model for retrieval-augmented generation (RAG) to enable discussions based on specific medical literature.

* **New RAG Model**: Add `src/lib/health-data/parser/rag.ts` to implement the RAG model for document and vision parsing.
* **Assistant Modes**: Update `src/app/api/assistant-modes/route.ts` to include the RAG model in the assistant modes.
* **Chat Rooms**: Modify `src/app/api/chat-rooms/route.ts` to import the RAG model for discussions.
* **Chat Setting Sidebar**: Update `src/components/chat/chat-setting-side-bar.tsx` to reference the RAG model in the assistant mode settings.
* **Chat Sidebar**: Update `src/components/chat/chat-side-bar.tsx` to reference the RAG model in the chat room settings.
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.

Add Model for Conversations Based on Specific Medical Knowledge

1 participant