Refactor logic to only make an API call to the backend (may it be RAG or OpenAI) with a query, and returns a streamed message response.
Create a /rag/process route in rag/app/main.py to process RAG requests.
Refactor code in src/components/ChatGPT/useChatGPT.ts (chatgpt-minimal) to send the user query as string and return streamed response as string tokens.
Renamed src/components/ChatGPT/useChatGPT.ts src/components/ChatGPT/useChatGPT.ts to src/components/RAG/useRAG.ts
Updated ChatGPTProps to RAGProps in src/components/RAG/interface.ts.
Description
Refactor logic to only make an API call to the backend (may it be RAG or OpenAI) with a query, and returns a streamed message response.
Create a /rag/process route in rag/app/main.py to process RAG requests. Refactor code in src/components/ChatGPT/useChatGPT.ts (chatgpt-minimal) to send the user query as string and return streamed response as string tokens. Renamed src/components/ChatGPT/useChatGPT.ts src/components/ChatGPT/useChatGPT.ts to src/components/RAG/useRAG.ts Updated ChatGPTProps to RAGProps in src/components/RAG/interface.ts.