A package to wrap services from different cloud providers in a common, simplified interface
The main purpose of this package was to explore the SDK's of different AI providers.
There are many other possibile tools to also perform this task, like these
- Go - version 1.22
SDK's currently covered:
- Google generative AI (Google AI API) SDK
- Google Vertex AI (Google Cloud project-based) SDK
- Ollama (for hosting LLM's locally) SDK
Like with all Go modules, you can simply "go get" it.
go get github.com/pbreedt/ai-text-extract
This package is not very flexible like taking CLI params (mainly because it is just a simple proof-of-concept and the incompatible model names between SDK's)
- Next step creates a new key and project in your Google Cloud account
- Obtain an API key, see this link
- export GOOGLE_AI_API_KEY=your_api_key
- Login to GCP console
- Create service account
- Create service account key (storing key in /path/to/sa-json.json file)
- export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa-json.json
- export GOOGLE_PROJECT_ID=your_project_id
- export GOOGLE_REGION=google_region
- Download and install from the Ollama website
- Run command 'ollama run llava'
Project is: in progress
Thanks to ritaly for a quick readme template
Created by @pbreedt