I am working with a LLM which is locally hosted. I want to use the model to compare two…
- User
I am working with a LLM which is locally hosted. I want to use the model to compare two data points and assign a score of 0 for a mismatch and 1 for a match. To achieve this, I have written a prompt which will make the model do the comparison and produce an output in a defined format as specified in the prompt. I have a data file, which has all the data in a JSON format, with 110000 individual JSONs for each of the 11000 data point. I have to feed this to the model along with the prompt to generate the output I need. The model will only accept a file, via a CURL POST command which will push the file, but the prompt has to be injected to the model using a predefined payload structure. How would I achieve this?
- Assistant
- User
I made a model ingest a file and I want the model to use the prompt that I created to parse the file and generate ouputs
- Assistant
If you have a locally hosted large language model (LLM) that requires both a file and a prompt to generate outputs, here's a detailed approach on how to combine these requirements into a single interaction using a curl POST command. We'll assume we are uploading a JSON file and that the model API accepts multipart/form-data requests which allow you to upload files and data in the same HTTP request.
- User
Help me generate a prompt to as a model to read a file and compare data
- Assistant
To create a prompt that instructs your language model to read a file and compare data, you'll need to be as specific as possible about what the model should look for and how the data is structured. The exact nature of the comparison – whether it's a text matching task, comparing numerical values, or something more complex – will guide how you phrase your prompt.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.