Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

🦙 Ollamate: SPIKE Data Storage #4685

Closed
Gary-H9 opened this issue Jul 11, 2024 · 0 comments
Closed

🦙 Ollamate: SPIKE Data Storage #4685

Gary-H9 opened this issue Jul 11, 2024 · 0 comments
Labels
spike investigation, discovery into a thing story

Comments

@Gary-H9
Copy link
Contributor

Gary-H9 commented Jul 11, 2024

The purpose of this Spike is to understand how best to store conversations generated in Ollamate.

The current thinking is that this should be stored in AWS RDS. This is based on a number of assumptions.

Call and responses are outlined in here.

This spike does force some architectural consideration as to how we send/recieve/show entire conversations to the user.

A chat request, with history is of this form :

curl http://localhost:11434/api/chat -d '{
  "model": "llama3",
  "messages": [
    {
      "role": "user",
      "content": "why is the sky blue?"
    },
    {
      "role": "assistant",
      "content": "due to rayleigh scattering."
    },
    {
      "role": "user",
      "content": "how is that different than mie scattering?"
    }
  ]
}'

The question therefore is if we ought to store the entire JSON in messages, associate this with a something like a conversation_id and update this in the database each time a new call / response is made.

It would be advisable to research the approach of other applications such as openwebui to understand their approach.

@Gary-H9 Gary-H9 added spike investigation, discovery into a thing story labels Jul 11, 2024
@Gary-H9 Gary-H9 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2024
@github-project-automation github-project-automation bot moved this from 👀 TODO to 🎉 Done in Analytical Platform Aug 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
spike investigation, discovery into a thing story
Projects
Archived in project
Development

No branches or pull requests

1 participant