anuaralfetahe

anuaralfetahe

I have been tasked with fine-tuning an OpenAI model using our customer data, which primarily originates from a Drupal website. The data includes various types of information, such as news articles, blog posts, service descriptions, and more.

Extracting the data is relatively straightforward, but preparing it for fine-tuning is proving to be more challenging. OpenAI expects the data to be in the following format:

[
  {
    "prompt": "Question or context",
    "completion": "Desired response"
  }
]

Are there any tools I can use to transform the data into this format? I would particularly prefer an Elixir-based tool, if one exists. However, I’m open to suggestions for other tools or services that can help with this task.

I’ve considered using the OpenAI API to generate questions and answers based on the provided data, but I’m concerned this approach could become quite expensive.

Additionally, the data will likely need some preprocessing and normalization, as much of it is wrapped in HTML.

I’m new to this field and would appreciate any advice or recommendations on how to approach this problem.

Showing Posts 1 to 3

jswny

jswny

Are you sure you want to fine tune here?

Can you provide some context around what kind of customer data you have and examples of what you’d like the model to do?

It sounds like its possible this may be a better fit for RAG, where you provide a way for a model to grab information that it thinks is relevant by providing it a function to do so, and using a vector db to find the relevant documents, data, etc.

If you want to go with fine tuning, you are going to have to do a lot of work to get the loose data in a question → completion format. If you just want to provide the model with the data required to answer questions, RAG might be a better fit.

anuaralfetahe

anuaralfetahe OP

Our customer is an energy provider. They sell liquid fuels, offer electric chargers, and provide electricity packages to their customers.

They have implemented a chat bot integrated with OpenAI to reduce the workload on customer support. Their clients can ask questions about contracts and services provided. For example: “What is the closest gas station to me with an electric charger that has a Type 2 connector?”

All this information is stored in a database and modeled as entities.
So far, we have created a separate entity storage system to hold structured datasets, which are maintained by the site editors. These datasets are categorized.

Each time a user asks the chat bot a question, we first categorize the query and then select the appropriate datasets associated with it. This dataset is then sent to OpenAI as context which helps the model generate more accurate response for the user.

Our goal is to leverage all the data stored in the system, structure it properly, and fine-tune the model with it.

So far, I have manually fine-tuned the model and observed improvements in the generated answers, even without sending any additional context.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
widianto
I think I’ve found a small improvement I could contribute to <%= web_namespace %>.CoreComponents (installer/templates/phx_web/compo...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
aseigo
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews