Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/honeyhive-go-sdk
Honey Hive Go SDK
https://github.com/speakeasy-sdks/honeyhive-go-sdk
ai golang llm llmops sdk
Last synced: 1 day ago
JSON representation
Honey Hive Go SDK
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/honeyhive-go-sdk
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-02-22T23:41:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:13:01.000Z (7 months ago)
- Last Synced: 2024-06-21T15:41:52.573Z (5 months ago)
- Topics: ai, golang, llm, llmops, sdk
- Language: Go
- Homepage: https://docs.honeyhive.ai/introduction
- Size: 194 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HoneyHive Go SDK
HoneyHive is a model observability and evaluation platform that helps you continuously improve your models in production. We help you evaluate, deploy, monitor and fine-tune both closed and open-source large language models for production use-cases, allowing you to optimize model performance & align your models with your users’ preferences.
## SDK Installation
```bash
go get github.com/speakeasy-sdks/honeyhive-go-sdk
```## Authentication
After signing up on the app, you can find your API key in the [Settings page](https://app.honeyhive.ai/settings/account).
## SDK Example Usage
```go
package mainimport (
"context"
"log"
"github.com/speakeasy-sdks/honeyhive-go-sdk"
"github.com/speakeasy-sdks/honeyhive-go-sdk/pkg/models/shared"
"github.com/speakeasy-sdks/honeyhive-go-sdk/pkg/models/operations"
)func main() {
s := honeyhive.New(honeyhive.WithSecurity(
shared.Security{
BearerAuth: shared.SchemeBearerAuth{
Authorization: "Bearer YOUR_BEARER_TOKEN_HERE",
},
},
))
req := operations.CreateDatasetRequest{
Request: shared.Dataset{
Description: "unde",
File: "deserunt",
Name: "porro",
Purpose: "nulla",
Task: "id",
},
}ctx := context.Background()
res, err := s.Dataset.CreateDataset(ctx, req)
if err != nil {
log.Fatal(err)
}if res.CreateDatasetResponse != nil {
// handle response
}
}
```## SDK Available Operations
### Dataset
* `CreateDataset` - Create Dataset
* `DeleteDataset` - Delete Datasets
* `FindDatasets` - Get Datasets### Feedback
* `CreateFeedback` - Create Feedback
### FineTunedModel
* `FindFineTunedModels` - This endpoint gets the fine-tuned models being managed by the user.
### Generation
* `GetGeneration` - Get Generations
* `IngestGenerations` - Create Generation for Task
* `ModelPromptCreateGeneration` - Create Generation for Model and Prompt
* `TaskCreateGeneration` - Create Generation for Task### Metric
* `CreateMetric` - Create Metric
* `FindMetrics` - Get Metrics### Prompt
* `ChangePrompt` - Update Prompts
* `CreatePrompt` - Create Prompt
* `DeletePrompt` - Delete Prompts
* `FindPrompts` - Get Prompts### Task
* `CreateTask` - Create a new task
* `FindAllTasks` - Find all Tasks
* `UpdateTask` - Update an existing task### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)