Replies: 1 comment 2 replies
-
Hello, @DirenCA! I'm here to help you with any questions or issues you may have. Let's work together to solve this bug. The issue you're encountering with the To address this, you can try the following steps:
Here's an example of how you might adjust the llm = ChatOllama(
model="llama3.1",
temperature=0,
max_tokens=10000,
timeout=120, # Increase timeout to 120 seconds
) Additionally, ensure that your code handles pagination by following the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Hello!
I´m currently trying to build a Chatbot which executes a GET request to gather data from my Database(FROST-Server). The request works fine and llama is smart enough to decide which enpoints to call most of the time. The problem is that it seems that my llm is not using or getting all the objects of the JSON. So asking something like "How many Datastreams are there?" (the objects are called 'Datatstream') will always give me the last four objects as output and not even the number 4.
This is how the last objects look like:
{"@iot.selfLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(102)","@iot.id":102,"name":"Bewässerung des Baumes","description":"Die Menge an Wasser, die für die Bewässerung des Baumes gemessen wurde","observationType":"OM_Measurement","unitOfMeasurement":{"name":"Liter","symbol":"L","definition":"ucum:L"},"observedArea":{"type":"Point","coordinates":[52.48906,13.34923]},"phenomenonTime":"2024-07-23T00:00:00Z/2024-07-23T00:00:00Z","ObservedProperty@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(102)/ObservedProperty","Sensor@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(102)/Sensor","Thing@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(102)/Thing","Observations@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(102)/Observations"},{"@iot.selfLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(103)","@iot.id":103,"name":"Bewässerung des Baumes","description":"Die Menge an Wasser, die für die Bewässerung des Baumes gemessen wurde","observationType":"OM_Measurement","unitOfMeasurement":{"name":"Liter","symbol":"L","definition":"ucum:L"},"observedArea":{"type":"Point","coordinates":[52.50875,13.40275]},"phenomenonTime":"2024-07-19T00:00:00Z/2024-07-19T00:00:00Z","ObservedProperty@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(103)/ObservedProperty","Sensor@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(103)/Sensor","Thing@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(103)/Thing","Observations@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(103)/Observations"},{"@iot.selfLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(104)","@iot.id":104,"name":"Bewässerung des Baumes","description":"Die Menge an Wasser, die für die Bewässerung des Baumes gemessen wurde","observationType":"OM_Measurement","unitOfMeasurement":{"name":"Liter","symbol":"L","definition":"ucum:L"},"observedArea":{"type":"Point","coordinates":[52.50131,13.37639]},"phenomenonTime":"2024-07-24T00:00:00Z/2024-07-24T00:00:00Z","ObservedProperty@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(104)/ObservedProperty","Sensor@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(104)/Sensor","Thing@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(104)/Thing","Observations@iot.navigationLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams(104)/Observations"}],"@iot.nextLink":"http://localhost:8082/FROST-Server/v1.1/Datastreams?$skip=100&$orderby=%40iot.id+asc&$skipFilter=%28%40iot.id+gt+104%29"}
System Info
platform Windows
Python Version 3.12.0
Beta Was this translation helpful? Give feedback.
All reactions