https://github.com/bit8bytes/gogantic
Interacting with LLMs in Go has never been easier.
https://github.com/bit8bytes/gogantic
golang llms ollama openai
Last synced: about 1 year ago
JSON representation
Interacting with LLMs in Go has never been easier.
- Host: GitHub
- URL: https://github.com/bit8bytes/gogantic
- Owner: bit8bytes
- License: mit
- Created: 2025-03-01T23:03:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-08T00:55:18.000Z (about 1 year ago)
- Last Synced: 2025-05-08T01:35:35.112Z (about 1 year ago)
- Topics: golang, llms, ollama, openai
- Language: Go
- Homepage:
- Size: 6.44 MB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Interacting with LLMs in Go has never been easier.
[](https://opensource.org/licenses/MIT)
Meet Gogo the Giant Gopher.

Gogo helps you work with LLMs in Go(lang) — without external dependencies.
Gogo speeds up your interactions with LLMs while keeping your stack lean and efficient.
## 🚴🏽♂️ Roadmap
- ✅ Build core components to interact with large language models.
- ✅ Create an Agent that can interact with the outside world using tools.
- 🔜 Develop a Director Agent that manages complex tasks by coordinating multiple Agents.
Next up: We’ll experiment with intraction between the host system and a local LLM.
Bonus: Gogantic includes a simple interface for adding documents to a Qdrant vector store.
## Example:
Usage of the `core/pipe`
```go
// This is not the full example. See 'examples/core/pipe'
pipe := pipe.New(messages, ollamaClient, parser)
result, _ := pipe.Invoke(context.Background())
fmt.Println("Translate from", result.InputLanguage, " to ", result.OutputLanguage)
fmt.Println("Result: ", result.Text)
```
Go to [Examples](/EXAMPLES.md) for more info.
You also can fork the repo and run `make examples/core/pipe` (requires ollama and llama3:8b model).
## 📚 Sources and Inspiration
- [tmc/langchaingo](https://github.com/tmc/langchaingo)
## ✨ Contributors
Contributions of any kind are welcome! 🙌 See [Get Involved](/GET-INVOLVED.md) to get started.