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

mHealth uiuc-chatbot #190

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

mHealth uiuc-chatbot #190

wants to merge 9 commits into from

Conversation

minump
Copy link
Collaborator

@minump minump commented Oct 16, 2024

PR deployment for the mHealth Illinois Computes project.

@minump minump linked an issue Oct 16, 2024 that may be closed by this pull request
Copy link

vercel bot commented Oct 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chat-illinois-edu ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 8:42pm
uiuc-chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 8:42pm

@coolify-uiuc-chat-app
Copy link

coolify-uiuc-chat-app bot commented Oct 17, 2024

The preview deployment failed. 🔴

Open Build Logs

Last updated at: 2024-11-12 20:37:28 CET

Copy link
Contributor

sweep-ai bot commented Oct 31, 2024

Hey @minump, here is an example of how you can ask me to improve this pull request:

@Sweep Add unit tests for the `buildPrompt` API endpoint that verify the new 4mb size limit configuration works as expected, testing both valid requests under the limit and requests that exceed it.

📖 For more information on how to use Sweep, please read our documentation.

merging main back to branch after the buildPrompt fix
@minump
Copy link
Collaborator Author

minump commented Nov 12, 2024

Had a bug that gives a 413 error (payload too large) for POST buildPrompt api.
Screenshot 2024-11-11 at 12 07 45 PM

Tried configuring the request body size limit to be higher in src/pages/api/buildPrompt.ts and src/pages/api/chat-api/chat.ts


export const config = {
  api: {
      bodyParser: {
          sizeLimit: '4mb'  # less than 4.5 mb size limit from vercel
      }
  }
}

This and reducing the top_n in the retriever helped to continue the conversation for 4-5 chats, but it fails nevertheless because of the whole conversation is being passed around in these api calls.

This is fixed with the current PR merge with changing the buildPrompt and routeModelRequest to be server function code rather than api calls.

As a next step, the conversations should also be fetched from the db. All previous conversations should be fetched from the db. Only the conversation id and the current user input needs to be input parameters in the api calls.

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.

mHealth uiuc chat frontend
1 participant