Updated docs

This commit is contained in:
Amith Koujalgi 2023-12-26 20:30:07 +05:30
parent c2ec62ba08
commit 41a5bb70bf
6 changed files with 74 additions and 2 deletions

View File

@ -3,6 +3,6 @@
"position": 10,
"link": {
"type": "generated-index",
"description": "Specs of APIs and their usage."
"description": "Details of APIs to interact with LLMs."
}
}

View File

@ -0,0 +1,8 @@
{
"label": "APIs - Extras",
"position": 10,
"link": {
"type": "generated-index",
"description": "Details of APIs to handle bunch of extra stuff."
}
}

View File

@ -0,0 +1,20 @@
---
sidebar_position: 3
---
# Ping
This API lets you check the reachability of Ollama server.
```java
public class Main {
public static void main(String[] args) {
String host = "http://localhost:11434/";
OllamaAPI ollamaAPI = new OllamaAPI(host);
ollamaAPI.ping();
}
}
```

View File

@ -0,0 +1,21 @@
---
sidebar_position: 2
---
# Set Request Timeout
This API lets you set the request timeout for the Ollama client.
```java
public class Main {
public static void main(String[] args) {
String host = "http://localhost:11434/";
OllamaAPI ollamaAPI = new OllamaAPI(host);
ollamaAPI.setRequestTimeoutSeconds(10);
}
}
```

View File

@ -0,0 +1,23 @@
---
sidebar_position: 1
---
# Set Verbosity
This API lets you set the verbosity of the Ollama client.
## Try asking a question about the model.
```java
public class Main {
public static void main(String[] args) {
String host = "http://localhost:11434/";
OllamaAPI ollamaAPI = new OllamaAPI(host);
ollamaAPI.setVerbose(true);
}
}
```

View File

@ -3,6 +3,6 @@
"position": 4,
"link": {
"type": "generated-index",
"description": "Specs of APIs and their usage."
"description": "Details of APIs to manage LLMs."
}
}