go-vectara
БесплатноБез исполняемых скриптовНе проверенUnofficial Go client for the Vectara API v2. Package vectara (github.com/psyb0t/go-vectara) has typed methods for corpora, documents, search, RAG queries…
от psyb0t979 установок в других каталогахОб этом скилле
go-vectara
Unofficial, typed Go client for the Vectara API v2, in package vectara at the module root.
For installation, operations, pagination and response fields, see references/setup.md.
Security & safety
- Read an API key from
VECTARA_API_KEYand send it inx-api-key. Never hardcode, commit or log credentials or authentication headers. - Use
https://api.vectara.ioas the base URL. Generated paths include/v2. - OAuth uses a bearer token in the
Authorizationheader, which your code gets fromhttps://auth.vectara.io/oauth2/token. Visitor tokens and federated bearer credentials work only on operations declaring those schemes. - Creating, updating, deleting or resetting resources changes account data, and deleting has no undo. Run those operations only on resources the task owns and only when the user asked for that specific change. Queries and agent execution may consume account resources or invoke configured tools.
When to use
- Go code needs Vectara corpora, documents, retrieval or RAG queries.
- Go code needs Vectara chats, agents, tools or pipelines.
- The project imports
github.com/psyb0t/go-vectara.
When not to use
- The code is not Go. This module ships only a Go package.
- You need a client maintained by Vectara. This client is unofficial.
- You want to change the generated client. See
AGENTS.mdin the repo.
Finding endpoints and types
The usage below covers one call. Every operation in the spec has a generated method, and the spec's descriptions are on them as Go doc comments. Look names and fields up instead of guessing. After go get github.com/psyb0t/go-vectara, from inside your module:
go doc github.com/psyb0t/go-vectara ClientWithResponsesInterface # every endpoint method
go doc github.com/psyb0t/go-vectara ListCorporaParams # one method, params type or model
go doc -all github.com/psyb0t/go-vectara # the whole package
The same documentation is at https://pkg.go.dev/github.com/psyb0t/go-vectara.
Method names come from the spec's operation IDs. <OperationId>WithResponse takes the context, then the path parameters in order, then *<OperationId>Params when the operation has query or header parameters, then the request body when it has one. Almost every operation takes a params struct, because the spec declares request timeout headers on them; pass nil when you set none. The JSON200 field (or JSON201 and so on, per declared status) holds the decoded body; it is nil for any other status.
Usage
Set x-api-key with a request editor, create the client, then call an operation. This is the repo's example_test.go:
import (
"context"
"net/http"
"os"
"github.com/psyb0t/go-vectara"
)
auth := vectara.WithRequestEditorFn(func(_ context.Context, req *http.Request) error {
req.Header.Set("x-api-key", os.Getenv("VECTARA_API_KEY"))
return nil
})
client, err := vectara.NewClientWithResponses("https://api.vectara.io", auth)
if err != nil {
return err
}
res, err := client.ListCorporaWithResponse(context.Background(), nil)
if err != nil {
return err
}
_ = res.JSON200 // *vectara.ListCorporaResponse
Check err for request construction, transport and decoding failures. Check StatusCode() and the expected success field such as JSON200 for API failures. A non-2xx response can have a nil Go error. Optional fields may be pointers; check before dereferencing.
The client does not paginate, retry or refresh OAuth tokens automatically. For server-sent events, call the raw method, decode the stream yourself and close the response body. Parsed response methods read the full body.
Установить go-vectara в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл go-vectara?
Unofficial Go client for the Vectara API v2. Package vectara (github.com/psyb0t/go-vectara) has typed methods for corpora, documents, search, RAG queries, chats, agents, tools, pipelines and account administration. Use when Go code needs Vectara or already imports go-vectara.
Как установить скилл go-vectara?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл go-vectara запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic