GithubHelp home page GithubHelp logo

ccqy66 / lingoose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from henomis/lingoose

0.0 0.0 0.0 1.2 MB

๐Ÿชฟ LinGoose is a Go framework for building awesome AI/LLM applications.

Home Page: https://lingoose.io

License: MIT License

Go 100.00%

lingoose's Introduction

lingoose

๐Ÿชฟ LinGoose Build Status GoDoc Go Report Card GitHub release

What is LinGoose?

LinGoose is a Go framework for building awesome AI/LLM applications.

  • LinGoose is modular โ€” You can import only the modules you need to build your application.
  • LinGoose is an abstraction of features โ€” You can choose your preferred implementation of a feature and/or create your own.
  • LinGoose is a complete solution โ€” You can use LinGoose to build your AI/LLM application from the ground up.

Did you know? A goose ๐Ÿชฟ fills its car ๐Ÿš— with goose-line โ›ฝ!

๐Ÿš€ Support the project by starring โญ the repository on GitHub and sharing it with your friends!

Quick start

  1. Initialise a new go module
mkdir example
cd example
go mod init example
  1. Create your first LinGoose application
package main

import (
	"context"
	"fmt"

	"github.com/henomis/lingoose/llm/openai"
	"github.com/henomis/lingoose/thread"
)

func main() {
	myThread := thread.New().AddMessage(
		thread.NewUserMessage().AddContent(
			thread.NewTextContent("Tell me a joke about geese"),
		),
	)

	err := openai.New().Generate(context.Background(), myThread)
	if err != nil {
		panic(err)
	}

	fmt.Println(myThread)
}
  1. Install the Go dependencies
go mod tidy
  1. Start the example application
export OPENAI_API_KEY=your-api-key

go run .

A goose fills its car with goose-line!

Reporting Issues

If you think you've found a bug, or something isn't behaving the way you think it should, please raise an issue on GitHub.

Contributing

We welcome contributions, Read our Contribution Guidelines to learn more about contributing to LinGoose

Blog posts and articles

Connect with the author

Twitter GitHub Linkedin

Join the community

Discord

License

ยฉ Simone Vellei, 2023~time.Now() Released under the MIT License

lingoose's People

Contributors

henomis avatar akshaylb avatar flyingduck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.