pctx0
from pctx0 import Pctx0Client
client = Pctx0Client(
access_key="YOUR_ACCESS_KEY",
workspace_id="YOUR_WORKSPACE_ID",
)
hits = client.knowledge.search(
query="onboarding checklist",
limit=10,
)
import { Nctx0Client } from "@actx0/nctx0";
const client = new Nctx0Client({
accessKey: "YOUR_ACCESS_KEY",
workspaceId: "YOUR_WORKSPACE_ID",
});
const hits = await client.knowledge.search({
query: "onboarding checklist",
limit: 10,
});
package main
import (
"context"
"github.com/Actx0/Gctx0"
)
func main() {
client := gctx0.NewClient(
gctx0.WithAccessKey("YOUR_ACCESS_KEY"),
gctx0.WithWorkspaceId("YOUR_WORKSPACE_ID"),
)
defer client.Close()
ctx := context.Background()
hits, err := client.Knowledge.Search(ctx, "onboarding checklist", nil, 10)
_ = hits
_ = err
}
curl -X POST 'https://app.actx0.com/api/v1/workspaces/<workspaceId>/documents/search' \
-H "X-Access-Key: YOUR_ACCESS_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"query": "refund policy", "limit": 10}'
# ---
# acli
export ACTX0_ACCESS_KEY="YOUR_ACCESS_KEY"
export ACTX0_WORKSPACE_ID="YOUR_WORKSPACE_ID"
acli knowledge search "onboarding checklist" --limit 10
{
"results": [
{
"documentId": "88888888-8888-8888-8888-888888888888",
"chunkId": "chunk_12",
"score": 0.88,
"text": "Refunds are available within 30 days of purchase.",
"labels": {}
}
]
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}Knowledge
Search Documents
Semantic search over indexed knowledge document chunks.
POST
/
workspaces
/
{workspaceId}
/
documents
/
search
pctx0
from pctx0 import Pctx0Client
client = Pctx0Client(
access_key="YOUR_ACCESS_KEY",
workspace_id="YOUR_WORKSPACE_ID",
)
hits = client.knowledge.search(
query="onboarding checklist",
limit=10,
)
import { Nctx0Client } from "@actx0/nctx0";
const client = new Nctx0Client({
accessKey: "YOUR_ACCESS_KEY",
workspaceId: "YOUR_WORKSPACE_ID",
});
const hits = await client.knowledge.search({
query: "onboarding checklist",
limit: 10,
});
package main
import (
"context"
"github.com/Actx0/Gctx0"
)
func main() {
client := gctx0.NewClient(
gctx0.WithAccessKey("YOUR_ACCESS_KEY"),
gctx0.WithWorkspaceId("YOUR_WORKSPACE_ID"),
)
defer client.Close()
ctx := context.Background()
hits, err := client.Knowledge.Search(ctx, "onboarding checklist", nil, 10)
_ = hits
_ = err
}
curl -X POST 'https://app.actx0.com/api/v1/workspaces/<workspaceId>/documents/search' \
-H "X-Access-Key: YOUR_ACCESS_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"query": "refund policy", "limit": 10}'
# ---
# acli
export ACTX0_ACCESS_KEY="YOUR_ACCESS_KEY"
export ACTX0_WORKSPACE_ID="YOUR_WORKSPACE_ID"
acli knowledge search "onboarding checklist" --limit 10
{
"results": [
{
"documentId": "88888888-8888-8888-8888-888888888888",
"chunkId": "chunk_12",
"score": 0.88,
"text": "Refunds are available within 30 days of purchase.",
"labels": {}
}
]
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}{
"errorMessage": "Name is required"
}Authorizations
AccessKeyAuthApiKeyAuth
Workspace access key for agent/runtime integrations.
Path Parameters
Body
application/json
Response
OK
Show child attributes
Show child attributes
Was this page helpful?
⌘I
