goai

goai

A friendly API and abstractions for developing AI applications.

Stars: 77

Visit
 screenshot

Go AI is a golang API library for AI Engineering, providing high level features like Chat Completion and Embedding. It allows users to interact with AI models for various tasks such as text generation and analysis. The library simplifies the process of integrating AI capabilities into Go applications, making it easier for developers to leverage AI technologies in their projects.

README:

Go AI

build Coverage Status Go Report Card Godoc Release

A golang API library for AI Engineering.

This is a high level feature overview.

  • Chat Completion
  • Embedding

Installation

go get -u 'github.com/tech1024/goai'

Getting Started

package main

import (
	"context"
	"log"

	"github.com/tech1024/goai"
	"github.com/tech1024/goai/provider/ollama"
)

func main() {
	ollamaClient, _ := ollama.NewClient("http://127.0.0.1:11434")
	chat := goai.NewChat(ollama.NewNewChatModel(ollamaClient, "deepseek-r1"))
	result, err := chat.Chat(context.Background(), "What can you do for me ?")
	if err != nil {
		log.Fatal(err)
	}

	log.Println(result)
}

License

This project is licensed under the Apache 2.0 license.

Contact

If you have any issues or feature requests, please contact us. PR is welcomed.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for goai

Similar Open Source Tools

For similar tasks

For similar jobs