@keystrokehq/pinecone 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/cancel-bulk-import.cjs +1 -1
- package/dist/actions/cancel-bulk-import.cjs.map +1 -1
- package/dist/actions/cancel-bulk-import.d.cts +1 -1
- package/dist/actions/cancel-bulk-import.d.cts.map +1 -1
- package/dist/actions/cancel-bulk-import.d.mts +1 -1
- package/dist/actions/cancel-bulk-import.d.mts.map +1 -1
- package/dist/actions/cancel-bulk-import.mjs +1 -1
- package/dist/actions/cancel-bulk-import.mjs.map +1 -1
- package/dist/actions/chat-assistant.cjs +9 -9
- package/dist/actions/chat-assistant.cjs.map +1 -1
- package/dist/actions/chat-assistant.d.cts +11 -10
- package/dist/actions/chat-assistant.d.cts.map +1 -1
- package/dist/actions/chat-assistant.d.mts +11 -10
- package/dist/actions/chat-assistant.d.mts.map +1 -1
- package/dist/actions/chat-assistant.mjs +9 -9
- package/dist/actions/chat-assistant.mjs.map +1 -1
- package/dist/actions/chat-completion-assistant.cjs +6 -6
- package/dist/actions/chat-completion-assistant.cjs.map +1 -1
- package/dist/actions/chat-completion-assistant.d.cts +8 -7
- package/dist/actions/chat-completion-assistant.d.cts.map +1 -1
- package/dist/actions/chat-completion-assistant.d.mts +8 -7
- package/dist/actions/chat-completion-assistant.d.mts.map +1 -1
- package/dist/actions/chat-completion-assistant.mjs +6 -6
- package/dist/actions/chat-completion-assistant.mjs.map +1 -1
- package/dist/actions/configure-index.cjs +6 -6
- package/dist/actions/configure-index.cjs.map +1 -1
- package/dist/actions/configure-index.d.cts +7 -7
- package/dist/actions/configure-index.d.mts +7 -7
- package/dist/actions/configure-index.mjs +6 -6
- package/dist/actions/configure-index.mjs.map +1 -1
- package/dist/actions/create-assistant.cjs +3 -3
- package/dist/actions/create-assistant.cjs.map +1 -1
- package/dist/actions/create-assistant.d.cts +4 -4
- package/dist/actions/create-assistant.d.mts +4 -4
- package/dist/actions/create-assistant.mjs +3 -3
- package/dist/actions/create-assistant.mjs.map +1 -1
- package/dist/actions/create-backup.cjs +1 -1
- package/dist/actions/create-backup.cjs.map +1 -1
- package/dist/actions/create-backup.d.cts +1 -1
- package/dist/actions/create-backup.d.mts +1 -1
- package/dist/actions/create-backup.mjs +1 -1
- package/dist/actions/create-backup.mjs.map +1 -1
- package/dist/actions/create-index-for-model.cjs +9 -9
- package/dist/actions/create-index-for-model.cjs.map +1 -1
- package/dist/actions/create-index-for-model.d.cts +13 -13
- package/dist/actions/create-index-for-model.d.mts +13 -13
- package/dist/actions/create-index-for-model.mjs +9 -9
- package/dist/actions/create-index-for-model.mjs.map +1 -1
- package/dist/actions/create-index-from-backup.cjs +2 -2
- package/dist/actions/create-index-from-backup.cjs.map +1 -1
- package/dist/actions/create-index-from-backup.d.cts +3 -3
- package/dist/actions/create-index-from-backup.d.mts +3 -3
- package/dist/actions/create-index-from-backup.mjs +2 -2
- package/dist/actions/create-index-from-backup.mjs.map +1 -1
- package/dist/actions/create-index.cjs +2 -2
- package/dist/actions/create-index.cjs.map +1 -1
- package/dist/actions/create-index.d.cts +4 -4
- package/dist/actions/create-index.d.mts +4 -4
- package/dist/actions/create-index.mjs +2 -2
- package/dist/actions/create-index.mjs.map +1 -1
- package/dist/actions/create-namespace.cjs +4 -4
- package/dist/actions/create-namespace.cjs.map +1 -1
- package/dist/actions/create-namespace.d.cts +6 -6
- package/dist/actions/create-namespace.d.mts +6 -6
- package/dist/actions/create-namespace.mjs +4 -4
- package/dist/actions/create-namespace.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +1 -1
- package/dist/actions/delete-assistant.d.mts +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-backup.cjs +1 -1
- package/dist/actions/delete-backup.cjs.map +1 -1
- package/dist/actions/delete-backup.d.cts +1 -1
- package/dist/actions/delete-backup.d.mts +1 -1
- package/dist/actions/delete-backup.mjs +1 -1
- package/dist/actions/delete-backup.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -1
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +1 -1
- package/dist/actions/delete-file.d.mts +1 -1
- package/dist/actions/delete-file.mjs +1 -1
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-index.cjs +1 -1
- package/dist/actions/delete-index.cjs.map +1 -1
- package/dist/actions/delete-index.d.cts +1 -1
- package/dist/actions/delete-index.d.mts +1 -1
- package/dist/actions/delete-index.mjs +1 -1
- package/dist/actions/delete-index.mjs.map +1 -1
- package/dist/actions/delete-namespace.cjs +1 -1
- package/dist/actions/delete-namespace.cjs.map +1 -1
- package/dist/actions/delete-namespace.d.cts +1 -1
- package/dist/actions/delete-namespace.d.cts.map +1 -1
- package/dist/actions/delete-namespace.d.mts +1 -1
- package/dist/actions/delete-namespace.d.mts.map +1 -1
- package/dist/actions/delete-namespace.mjs +1 -1
- package/dist/actions/delete-namespace.mjs.map +1 -1
- package/dist/actions/delete-vectors.cjs +2 -2
- package/dist/actions/delete-vectors.cjs.map +1 -1
- package/dist/actions/delete-vectors.d.cts +3 -3
- package/dist/actions/delete-vectors.d.cts.map +1 -1
- package/dist/actions/delete-vectors.d.mts +3 -3
- package/dist/actions/delete-vectors.d.mts.map +1 -1
- package/dist/actions/delete-vectors.mjs +2 -2
- package/dist/actions/delete-vectors.mjs.map +1 -1
- package/dist/actions/describe-backup.cjs +3 -3
- package/dist/actions/describe-backup.cjs.map +1 -1
- package/dist/actions/describe-backup.d.cts +3 -3
- package/dist/actions/describe-backup.d.mts +3 -3
- package/dist/actions/describe-backup.mjs +3 -3
- package/dist/actions/describe-backup.mjs.map +1 -1
- package/dist/actions/describe-bulk-import.cjs +1 -1
- package/dist/actions/describe-bulk-import.cjs.map +1 -1
- package/dist/actions/describe-bulk-import.d.cts +1 -1
- package/dist/actions/describe-bulk-import.d.mts +1 -1
- package/dist/actions/describe-bulk-import.mjs +1 -1
- package/dist/actions/describe-bulk-import.mjs.map +1 -1
- package/dist/actions/describe-file.cjs +2 -2
- package/dist/actions/describe-file.cjs.map +1 -1
- package/dist/actions/describe-file.d.cts +2 -2
- package/dist/actions/describe-file.d.mts +2 -2
- package/dist/actions/describe-file.mjs +2 -2
- package/dist/actions/describe-file.mjs.map +1 -1
- package/dist/actions/describe-index-stats.cjs +2 -2
- package/dist/actions/describe-index-stats.cjs.map +1 -1
- package/dist/actions/describe-index-stats.d.cts +2 -2
- package/dist/actions/describe-index-stats.d.mts +2 -2
- package/dist/actions/describe-index-stats.mjs +2 -2
- package/dist/actions/describe-index-stats.mjs.map +1 -1
- package/dist/actions/describe-index.cjs +9 -9
- package/dist/actions/describe-index.cjs.map +1 -1
- package/dist/actions/describe-index.d.cts +9 -9
- package/dist/actions/describe-index.d.mts +9 -9
- package/dist/actions/describe-index.mjs +9 -9
- package/dist/actions/describe-index.mjs.map +1 -1
- package/dist/actions/describe-namespace.cjs +3 -3
- package/dist/actions/describe-namespace.cjs.map +1 -1
- package/dist/actions/describe-namespace.d.cts +4 -4
- package/dist/actions/describe-namespace.d.mts +4 -4
- package/dist/actions/describe-namespace.mjs +3 -3
- package/dist/actions/describe-namespace.mjs.map +1 -1
- package/dist/actions/describe-restore-job.cjs +1 -1
- package/dist/actions/describe-restore-job.cjs.map +1 -1
- package/dist/actions/describe-restore-job.d.cts +1 -1
- package/dist/actions/describe-restore-job.d.mts +1 -1
- package/dist/actions/describe-restore-job.mjs +1 -1
- package/dist/actions/describe-restore-job.mjs.map +1 -1
- package/dist/actions/embed.cjs +5 -5
- package/dist/actions/embed.cjs.map +1 -1
- package/dist/actions/embed.d.cts +6 -5
- package/dist/actions/embed.d.mts +6 -5
- package/dist/actions/embed.mjs +5 -5
- package/dist/actions/embed.mjs.map +1 -1
- package/dist/actions/fetch-vectors.cjs +3 -3
- package/dist/actions/fetch-vectors.cjs.map +1 -1
- package/dist/actions/fetch-vectors.d.cts +3 -3
- package/dist/actions/fetch-vectors.d.mts +3 -3
- package/dist/actions/fetch-vectors.mjs +3 -3
- package/dist/actions/fetch-vectors.mjs.map +1 -1
- package/dist/actions/get-assistant.cjs +2 -2
- package/dist/actions/get-assistant.cjs.map +1 -1
- package/dist/actions/get-assistant.d.cts +2 -2
- package/dist/actions/get-assistant.d.mts +2 -2
- package/dist/actions/get-assistant.mjs +2 -2
- package/dist/actions/get-assistant.mjs.map +1 -1
- package/dist/actions/get-model.cjs +2 -2
- package/dist/actions/get-model.cjs.map +1 -1
- package/dist/actions/get-model.d.cts +2 -2
- package/dist/actions/get-model.d.mts +2 -2
- package/dist/actions/get-model.mjs +2 -2
- package/dist/actions/get-model.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +4 -4
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +4 -4
- package/dist/actions/list-assistants.d.mts +4 -4
- package/dist/actions/list-assistants.mjs +4 -4
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-bulk-imports.cjs +3 -3
- package/dist/actions/list-bulk-imports.cjs.map +1 -1
- package/dist/actions/list-bulk-imports.d.cts +3 -3
- package/dist/actions/list-bulk-imports.d.mts +3 -3
- package/dist/actions/list-bulk-imports.mjs +3 -3
- package/dist/actions/list-bulk-imports.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +2 -2
- package/dist/actions/list-collections.cjs.map +1 -1
- package/dist/actions/list-collections.d.cts +2 -2
- package/dist/actions/list-collections.d.mts +2 -2
- package/dist/actions/list-collections.mjs +2 -2
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-files.cjs +4 -4
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +4 -4
- package/dist/actions/list-files.d.mts +4 -4
- package/dist/actions/list-files.mjs +4 -4
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-index-backups.cjs +5 -5
- package/dist/actions/list-index-backups.cjs.map +1 -1
- package/dist/actions/list-index-backups.d.cts +5 -5
- package/dist/actions/list-index-backups.d.mts +5 -5
- package/dist/actions/list-index-backups.mjs +5 -5
- package/dist/actions/list-index-backups.mjs.map +1 -1
- package/dist/actions/list-indexes.cjs +8 -8
- package/dist/actions/list-indexes.cjs.map +1 -1
- package/dist/actions/list-indexes.d.cts +8 -8
- package/dist/actions/list-indexes.d.mts +8 -8
- package/dist/actions/list-indexes.mjs +8 -8
- package/dist/actions/list-indexes.mjs.map +1 -1
- package/dist/actions/list-models.cjs +3 -3
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -3
- package/dist/actions/list-models.d.mts +3 -3
- package/dist/actions/list-models.mjs +3 -3
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-namespaces-operation.cjs +5 -5
- package/dist/actions/list-namespaces-operation.cjs.map +1 -1
- package/dist/actions/list-namespaces-operation.d.cts +6 -6
- package/dist/actions/list-namespaces-operation.d.mts +6 -6
- package/dist/actions/list-namespaces-operation.mjs +5 -5
- package/dist/actions/list-namespaces-operation.mjs.map +1 -1
- package/dist/actions/list-project-backups.cjs +5 -5
- package/dist/actions/list-project-backups.cjs.map +1 -1
- package/dist/actions/list-project-backups.d.cts +5 -5
- package/dist/actions/list-project-backups.d.mts +5 -5
- package/dist/actions/list-project-backups.mjs +5 -5
- package/dist/actions/list-project-backups.mjs.map +1 -1
- package/dist/actions/list-restore-jobs.cjs +3 -3
- package/dist/actions/list-restore-jobs.cjs.map +1 -1
- package/dist/actions/list-restore-jobs.d.cts +3 -3
- package/dist/actions/list-restore-jobs.d.mts +3 -3
- package/dist/actions/list-restore-jobs.mjs +3 -3
- package/dist/actions/list-restore-jobs.mjs.map +1 -1
- package/dist/actions/list-vectors.cjs +4 -4
- package/dist/actions/list-vectors.cjs.map +1 -1
- package/dist/actions/list-vectors.d.cts +4 -4
- package/dist/actions/list-vectors.d.mts +4 -4
- package/dist/actions/list-vectors.mjs +4 -4
- package/dist/actions/list-vectors.mjs.map +1 -1
- package/dist/actions/query-vectors.cjs +6 -6
- package/dist/actions/query-vectors.cjs.map +1 -1
- package/dist/actions/query-vectors.d.cts +7 -7
- package/dist/actions/query-vectors.d.mts +7 -7
- package/dist/actions/query-vectors.mjs +6 -6
- package/dist/actions/query-vectors.mjs.map +1 -1
- package/dist/actions/rerank.cjs +4 -4
- package/dist/actions/rerank.cjs.map +1 -1
- package/dist/actions/rerank.d.cts +5 -4
- package/dist/actions/rerank.d.cts.map +1 -1
- package/dist/actions/rerank.d.mts +5 -4
- package/dist/actions/rerank.d.mts.map +1 -1
- package/dist/actions/rerank.mjs +4 -4
- package/dist/actions/rerank.mjs.map +1 -1
- package/dist/actions/retrieve-context-assistant.cjs +9 -9
- package/dist/actions/retrieve-context-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-context-assistant.d.cts +11 -10
- package/dist/actions/retrieve-context-assistant.d.mts +11 -10
- package/dist/actions/retrieve-context-assistant.mjs +9 -9
- package/dist/actions/retrieve-context-assistant.mjs.map +1 -1
- package/dist/actions/search-records-namespace.cjs +7 -7
- package/dist/actions/search-records-namespace.cjs.map +1 -1
- package/dist/actions/search-records-namespace.d.cts +9 -9
- package/dist/actions/search-records-namespace.d.mts +9 -9
- package/dist/actions/search-records-namespace.mjs +7 -7
- package/dist/actions/search-records-namespace.mjs.map +1 -1
- package/dist/actions/start-bulk-import.cjs +1 -1
- package/dist/actions/start-bulk-import.cjs.map +1 -1
- package/dist/actions/start-bulk-import.d.cts +1 -1
- package/dist/actions/start-bulk-import.d.mts +1 -1
- package/dist/actions/start-bulk-import.mjs +1 -1
- package/dist/actions/start-bulk-import.mjs.map +1 -1
- package/dist/actions/update-assistant.cjs +3 -3
- package/dist/actions/update-assistant.cjs.map +1 -1
- package/dist/actions/update-assistant.d.cts +4 -4
- package/dist/actions/update-assistant.d.mts +4 -4
- package/dist/actions/update-assistant.mjs +3 -3
- package/dist/actions/update-assistant.mjs.map +1 -1
- package/dist/actions/update-vector.cjs +3 -3
- package/dist/actions/update-vector.cjs.map +1 -1
- package/dist/actions/update-vector.d.cts +5 -5
- package/dist/actions/update-vector.d.mts +5 -5
- package/dist/actions/update-vector.mjs +3 -3
- package/dist/actions/update-vector.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -1
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +1 -1
- package/dist/actions/upload-file.d.mts +1 -1
- package/dist/actions/upload-file.mjs +1 -1
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/upsert-records-namespace.cjs +1 -1
- package/dist/actions/upsert-records-namespace.cjs.map +1 -1
- package/dist/actions/upsert-records-namespace.d.cts +1 -1
- package/dist/actions/upsert-records-namespace.d.mts +1 -1
- package/dist/actions/upsert-records-namespace.mjs +1 -1
- package/dist/actions/upsert-records-namespace.mjs.map +1 -1
- package/dist/actions/upsert-vectors.cjs +3 -3
- package/dist/actions/upsert-vectors.cjs.map +1 -1
- package/dist/actions/upsert-vectors.d.cts +5 -4
- package/dist/actions/upsert-vectors.d.cts.map +1 -1
- package/dist/actions/upsert-vectors.d.mts +5 -4
- package/dist/actions/upsert-vectors.d.mts.map +1 -1
- package/dist/actions/upsert-vectors.mjs +3 -3
- package/dist/actions/upsert-vectors.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
package/dist/actions/rerank.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const PineconeRerankInput = zod.z.object({
|
|
|
8
8
|
documents: zod.z.array(zod.z.object({
|
|
9
9
|
id: zod.z.string().describe("Optional unique identifier for the document.").optional(),
|
|
10
10
|
text: zod.z.string().describe("The text content of the document to be reranked.")
|
|
11
|
-
}).describe("A document to be reranked.")).describe("Array of document objects requiring reranking."),
|
|
11
|
+
}).passthrough().describe("A document to be reranked.")).describe("Array of document objects requiring reranking."),
|
|
12
12
|
parameters: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional model-specific options. Refer to model documentation for supported parameters.").optional(),
|
|
13
13
|
rank_fields: zod.z.array(zod.z.string()).describe("Fields to consider for reranking. Defaults to ['text']. Model-specific limits may apply.").optional(),
|
|
14
14
|
return_documents: zod.z.boolean().default(true).describe("Include documents in response. Defaults to true.").optional()
|
|
@@ -17,13 +17,13 @@ const PineconeRerank_RankedDocumentSchema = zod.z.object({
|
|
|
17
17
|
index: zod.z.number().int().describe("Original position of document in input array.").nullable(),
|
|
18
18
|
score: zod.z.number().describe("Relevance score in 0-1 range, where higher values indicate greater relevance.").nullable(),
|
|
19
19
|
document: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The ranked document with fields (included when return_documents=true).").nullable().optional()
|
|
20
|
-
}).describe("A document with its reranking score.");
|
|
21
|
-
const PineconeRerank_UsageInfoSchema = zod.z.object({ rerank_units: zod.z.number().int().describe("Units consumed by the rerank operation.").nullable() }).describe("Usage information for the rerank operation.");
|
|
20
|
+
}).passthrough().describe("A document with its reranking score.");
|
|
21
|
+
const PineconeRerank_UsageInfoSchema = zod.z.object({ rerank_units: zod.z.number().int().describe("Units consumed by the rerank operation.").nullable() }).passthrough().describe("Usage information for the rerank operation.");
|
|
22
22
|
const PineconeRerankOutput = zod.z.object({
|
|
23
23
|
data: zod.z.array(PineconeRerank_RankedDocumentSchema).describe("Array of reranked documents ordered by relevance score."),
|
|
24
24
|
model: zod.z.string().describe("The reranking model used.").nullable(),
|
|
25
25
|
usage: PineconeRerank_UsageInfoSchema.nullable()
|
|
26
|
-
}).describe("Response schema for reranking documents.");
|
|
26
|
+
}).passthrough().describe("Response schema for reranking documents.");
|
|
27
27
|
const pineconeRerank = require_action.action("PINECONE_RERANK", {
|
|
28
28
|
slug: "pinecone-rerank",
|
|
29
29
|
name: "Rerank Documents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rerank.cjs","names":["z","action"],"sources":["../../src/actions/rerank.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRerankInput = z.object({\n model: z.string().describe(\"The reranking model to apply (e.g., 'bge-reranker-v2-m3').\"),\n query: z.string().describe(\"The search query against which documents are ranked.\"),\n top_n: z.number().int().describe(\"Number of ranked results to return. Defaults to the total number of input documents if not specified.\").optional(),\n documents: z.array(z.object({\n id: z.string().describe(\"Optional unique identifier for the document.\").optional(),\n text: z.string().describe(\"The text content of the document to be reranked.\"),\n}).describe(\"A document to be reranked.\")).describe(\"Array of document objects requiring reranking.\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"Additional model-specific options. Refer to model documentation for supported parameters.\").optional(),\n rank_fields: z.array(z.string()).describe(\"Fields to consider for reranking. Defaults to ['text']. Model-specific limits may apply.\").optional(),\n return_documents: z.boolean().default(true).describe(\"Include documents in response. Defaults to true.\").optional(),\n}).describe(\"Request model for reranking documents by semantic relevance to a query.\");\nconst PineconeRerank_RankedDocumentSchema = z.object({\n index: z.number().int().describe(\"Original position of document in input array.\").nullable(),\n score: z.number().describe(\"Relevance score in 0-1 range, where higher values indicate greater relevance.\").nullable(),\n document: z.record(z.string(), z.unknown()).describe(\"The ranked document with fields (included when return_documents=true).\").nullable().optional(),\n}).describe(\"A document with its reranking score.\");\nconst PineconeRerank_UsageInfoSchema = z.object({\n rerank_units: z.number().int().describe(\"Units consumed by the rerank operation.\").nullable(),\n}).describe(\"Usage information for the rerank operation.\");\nexport const PineconeRerankOutput = z.object({\n data: z.array(PineconeRerank_RankedDocumentSchema).describe(\"Array of reranked documents ordered by relevance score.\"),\n model: z.string().describe(\"The reranking model used.\").nullable(),\n usage: PineconeRerank_UsageInfoSchema.nullable(),\n}).describe(\"Response schema for reranking documents.\");\n\nexport const pineconeRerank = action(\"PINECONE_RERANK\", {\n slug: \"pinecone-rerank\",\n name: \"Rerank Documents\",\n description: \"Tool to rerank documents by semantic relevance to a query. Use when you need to order retrieved documents by their semantic relevance to a user's search query using Pinecone's hosted reranking models.\",\n input: PineconeRerankInput,\n output: PineconeRerankOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC9E,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"rerank.cjs","names":["z","action"],"sources":["../../src/actions/rerank.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRerankInput = z.object({\n model: z.string().describe(\"The reranking model to apply (e.g., 'bge-reranker-v2-m3').\"),\n query: z.string().describe(\"The search query against which documents are ranked.\"),\n top_n: z.number().int().describe(\"Number of ranked results to return. Defaults to the total number of input documents if not specified.\").optional(),\n documents: z.array(z.object({\n id: z.string().describe(\"Optional unique identifier for the document.\").optional(),\n text: z.string().describe(\"The text content of the document to be reranked.\"),\n}).passthrough().describe(\"A document to be reranked.\")).describe(\"Array of document objects requiring reranking.\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"Additional model-specific options. Refer to model documentation for supported parameters.\").optional(),\n rank_fields: z.array(z.string()).describe(\"Fields to consider for reranking. Defaults to ['text']. Model-specific limits may apply.\").optional(),\n return_documents: z.boolean().default(true).describe(\"Include documents in response. Defaults to true.\").optional(),\n}).describe(\"Request model for reranking documents by semantic relevance to a query.\");\nconst PineconeRerank_RankedDocumentSchema = z.object({\n index: z.number().int().describe(\"Original position of document in input array.\").nullable(),\n score: z.number().describe(\"Relevance score in 0-1 range, where higher values indicate greater relevance.\").nullable(),\n document: z.record(z.string(), z.unknown()).describe(\"The ranked document with fields (included when return_documents=true).\").nullable().optional(),\n}).passthrough().describe(\"A document with its reranking score.\");\nconst PineconeRerank_UsageInfoSchema = z.object({\n rerank_units: z.number().int().describe(\"Units consumed by the rerank operation.\").nullable(),\n}).passthrough().describe(\"Usage information for the rerank operation.\");\nexport const PineconeRerankOutput = z.object({\n data: z.array(PineconeRerank_RankedDocumentSchema).describe(\"Array of reranked documents ordered by relevance score.\"),\n model: z.string().describe(\"The reranking model used.\").nullable(),\n usage: PineconeRerank_UsageInfoSchema.nullable(),\n}).passthrough().describe(\"Response schema for reranking documents.\");\n\nexport const pineconeRerank = action(\"PINECONE_RERANK\", {\n slug: \"pinecone-rerank\",\n name: \"Rerank Documents\",\n description: \"Tool to rerank documents by semantic relevance to a query. Use when you need to order retrieved documents by their semantic relevance to a user's search query using Pinecone's hosted reranking models.\",\n input: PineconeRerankInput,\n output: PineconeRerankOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;E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C,CAAC,SAAS,yDAAyD;CACrH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,OAAO,+BAA+B,SAAS;AACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,iBAAiBC,eAAAA,OAAO,mBAAmB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const PineconeRerankInput: z.ZodObject<{
|
|
|
8
8
|
documents: z.ZodArray<z.ZodObject<{
|
|
9
9
|
id: z.ZodOptional<z.ZodString>;
|
|
10
10
|
text: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
rank_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
14
|
return_documents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -18,16 +18,17 @@ declare const PineconeRerankOutput: z.ZodObject<{
|
|
|
18
18
|
index: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
score: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
document: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
model: z.ZodNullable<z.ZodString>;
|
|
23
23
|
usage: z.ZodNullable<z.ZodObject<{
|
|
24
24
|
rerank_units: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const pineconeRerank: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
model: string;
|
|
29
29
|
query: string;
|
|
30
30
|
documents: {
|
|
31
|
+
[x: string]: unknown;
|
|
31
32
|
text: string;
|
|
32
33
|
id?: string | undefined;
|
|
33
34
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rerank.d.cts","names":[],"sources":["../../src/actions/rerank.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA
|
|
1
|
+
{"version":3,"file":"rerank.d.cts","names":[],"sources":["../../src/actions/rerank.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA;;;;;;;;;eAMzB,MAAA"}
|
|
@@ -8,7 +8,7 @@ declare const PineconeRerankInput: z.ZodObject<{
|
|
|
8
8
|
documents: z.ZodArray<z.ZodObject<{
|
|
9
9
|
id: z.ZodOptional<z.ZodString>;
|
|
10
10
|
text: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
rank_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
14
|
return_documents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -18,16 +18,17 @@ declare const PineconeRerankOutput: z.ZodObject<{
|
|
|
18
18
|
index: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
score: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
document: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
model: z.ZodNullable<z.ZodString>;
|
|
23
23
|
usage: z.ZodNullable<z.ZodObject<{
|
|
24
24
|
rerank_units: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const pineconeRerank: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
model: string;
|
|
29
29
|
query: string;
|
|
30
30
|
documents: {
|
|
31
|
+
[x: string]: unknown;
|
|
31
32
|
text: string;
|
|
32
33
|
id?: string | undefined;
|
|
33
34
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rerank.d.mts","names":[],"sources":["../../src/actions/rerank.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA
|
|
1
|
+
{"version":3,"file":"rerank.d.mts","names":[],"sources":["../../src/actions/rerank.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA;;;;;;;;;eAMzB,MAAA"}
|
package/dist/actions/rerank.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const PineconeRerankInput = z.object({
|
|
|
8
8
|
documents: z.array(z.object({
|
|
9
9
|
id: z.string().describe("Optional unique identifier for the document.").optional(),
|
|
10
10
|
text: z.string().describe("The text content of the document to be reranked.")
|
|
11
|
-
}).describe("A document to be reranked.")).describe("Array of document objects requiring reranking."),
|
|
11
|
+
}).passthrough().describe("A document to be reranked.")).describe("Array of document objects requiring reranking."),
|
|
12
12
|
parameters: z.record(z.string(), z.unknown()).describe("Additional model-specific options. Refer to model documentation for supported parameters.").optional(),
|
|
13
13
|
rank_fields: z.array(z.string()).describe("Fields to consider for reranking. Defaults to ['text']. Model-specific limits may apply.").optional(),
|
|
14
14
|
return_documents: z.boolean().default(true).describe("Include documents in response. Defaults to true.").optional()
|
|
@@ -17,8 +17,8 @@ const PineconeRerank_RankedDocumentSchema = z.object({
|
|
|
17
17
|
index: z.number().int().describe("Original position of document in input array.").nullable(),
|
|
18
18
|
score: z.number().describe("Relevance score in 0-1 range, where higher values indicate greater relevance.").nullable(),
|
|
19
19
|
document: z.record(z.string(), z.unknown()).describe("The ranked document with fields (included when return_documents=true).").nullable().optional()
|
|
20
|
-
}).describe("A document with its reranking score.");
|
|
21
|
-
const PineconeRerank_UsageInfoSchema = z.object({ rerank_units: z.number().int().describe("Units consumed by the rerank operation.").nullable() }).describe("Usage information for the rerank operation.");
|
|
20
|
+
}).passthrough().describe("A document with its reranking score.");
|
|
21
|
+
const PineconeRerank_UsageInfoSchema = z.object({ rerank_units: z.number().int().describe("Units consumed by the rerank operation.").nullable() }).passthrough().describe("Usage information for the rerank operation.");
|
|
22
22
|
const pineconeRerank = action("PINECONE_RERANK", {
|
|
23
23
|
slug: "pinecone-rerank",
|
|
24
24
|
name: "Rerank Documents",
|
|
@@ -28,7 +28,7 @@ const pineconeRerank = action("PINECONE_RERANK", {
|
|
|
28
28
|
data: z.array(PineconeRerank_RankedDocumentSchema).describe("Array of reranked documents ordered by relevance score."),
|
|
29
29
|
model: z.string().describe("The reranking model used.").nullable(),
|
|
30
30
|
usage: PineconeRerank_UsageInfoSchema.nullable()
|
|
31
|
-
}).describe("Response schema for reranking documents.")
|
|
31
|
+
}).passthrough().describe("Response schema for reranking documents.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { pineconeRerank };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rerank.mjs","names":[],"sources":["../../src/actions/rerank.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRerankInput = z.object({\n model: z.string().describe(\"The reranking model to apply (e.g., 'bge-reranker-v2-m3').\"),\n query: z.string().describe(\"The search query against which documents are ranked.\"),\n top_n: z.number().int().describe(\"Number of ranked results to return. Defaults to the total number of input documents if not specified.\").optional(),\n documents: z.array(z.object({\n id: z.string().describe(\"Optional unique identifier for the document.\").optional(),\n text: z.string().describe(\"The text content of the document to be reranked.\"),\n}).describe(\"A document to be reranked.\")).describe(\"Array of document objects requiring reranking.\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"Additional model-specific options. Refer to model documentation for supported parameters.\").optional(),\n rank_fields: z.array(z.string()).describe(\"Fields to consider for reranking. Defaults to ['text']. Model-specific limits may apply.\").optional(),\n return_documents: z.boolean().default(true).describe(\"Include documents in response. Defaults to true.\").optional(),\n}).describe(\"Request model for reranking documents by semantic relevance to a query.\");\nconst PineconeRerank_RankedDocumentSchema = z.object({\n index: z.number().int().describe(\"Original position of document in input array.\").nullable(),\n score: z.number().describe(\"Relevance score in 0-1 range, where higher values indicate greater relevance.\").nullable(),\n document: z.record(z.string(), z.unknown()).describe(\"The ranked document with fields (included when return_documents=true).\").nullable().optional(),\n}).describe(\"A document with its reranking score.\");\nconst PineconeRerank_UsageInfoSchema = z.object({\n rerank_units: z.number().int().describe(\"Units consumed by the rerank operation.\").nullable(),\n}).describe(\"Usage information for the rerank operation.\");\nexport const PineconeRerankOutput = z.object({\n data: z.array(PineconeRerank_RankedDocumentSchema).describe(\"Array of reranked documents ordered by relevance score.\"),\n model: z.string().describe(\"The reranking model used.\").nullable(),\n usage: PineconeRerank_UsageInfoSchema.nullable(),\n}).describe(\"Response schema for reranking documents.\");\n\nexport const pineconeRerank = action(\"PINECONE_RERANK\", {\n slug: \"pinecone-rerank\",\n name: \"Rerank Documents\",\n description: \"Tool to rerank documents by semantic relevance to a query. Use when you need to order retrieved documents by their semantic relevance to a user's search query using Pinecone's hosted reranking models.\",\n input: PineconeRerankInput,\n output: PineconeRerankOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC9E,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"rerank.mjs","names":[],"sources":["../../src/actions/rerank.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRerankInput = z.object({\n model: z.string().describe(\"The reranking model to apply (e.g., 'bge-reranker-v2-m3').\"),\n query: z.string().describe(\"The search query against which documents are ranked.\"),\n top_n: z.number().int().describe(\"Number of ranked results to return. Defaults to the total number of input documents if not specified.\").optional(),\n documents: z.array(z.object({\n id: z.string().describe(\"Optional unique identifier for the document.\").optional(),\n text: z.string().describe(\"The text content of the document to be reranked.\"),\n}).passthrough().describe(\"A document to be reranked.\")).describe(\"Array of document objects requiring reranking.\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"Additional model-specific options. Refer to model documentation for supported parameters.\").optional(),\n rank_fields: z.array(z.string()).describe(\"Fields to consider for reranking. Defaults to ['text']. Model-specific limits may apply.\").optional(),\n return_documents: z.boolean().default(true).describe(\"Include documents in response. Defaults to true.\").optional(),\n}).describe(\"Request model for reranking documents by semantic relevance to a query.\");\nconst PineconeRerank_RankedDocumentSchema = z.object({\n index: z.number().int().describe(\"Original position of document in input array.\").nullable(),\n score: z.number().describe(\"Relevance score in 0-1 range, where higher values indicate greater relevance.\").nullable(),\n document: z.record(z.string(), z.unknown()).describe(\"The ranked document with fields (included when return_documents=true).\").nullable().optional(),\n}).passthrough().describe(\"A document with its reranking score.\");\nconst PineconeRerank_UsageInfoSchema = z.object({\n rerank_units: z.number().int().describe(\"Units consumed by the rerank operation.\").nullable(),\n}).passthrough().describe(\"Usage information for the rerank operation.\");\nexport const PineconeRerankOutput = z.object({\n data: z.array(PineconeRerank_RankedDocumentSchema).describe(\"Array of reranked documents ordered by relevance score.\"),\n model: z.string().describe(\"The reranking model used.\").nullable(),\n usage: PineconeRerank_UsageInfoSchema.nullable(),\n}).passthrough().describe(\"Response schema for reranking documents.\");\n\nexport const pineconeRerank = action(\"PINECONE_RERANK\", {\n slug: \"pinecone-rerank\",\n name: \"Rerank Documents\",\n description: \"Tool to rerank documents by semantic relevance to a query. Use when you need to order retrieved documents by their semantic relevance to a user's search query using Pinecone's hosted reranking models.\",\n input: PineconeRerankInput,\n output: PineconeRerankOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,CAAC,SAAS,gDAAgD;CAChH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC7J,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/I,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,sCAAsC,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACrH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,iCAAiC,EAAE,OAAO,EAC9C,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAOvE,MAAa,iBAAiB,OAAO,mBAAmB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXkC,EAAE,OAAO;EAC3C,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,yDAAyD;EACrH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjE,OAAO,+BAA+B,SAAS;CACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -4,11 +4,11 @@ let zod = require("zod");
|
|
|
4
4
|
const PineconeRetrieveContextAssistantInput = zod.z.object({
|
|
5
5
|
query: zod.z.string().describe("The query to generate context for. Exactly one of query or messages must be provided.").optional(),
|
|
6
6
|
top_k: zod.z.number().int().describe("Maximum number of context snippets to return. Default is 16. Maximum is 64.").optional(),
|
|
7
|
-
filter: zod.z.
|
|
7
|
+
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata filter to constrain which documents can be retrieved. Example: {\"genre\": {\"$ne\": \"documentary\"}}").optional(),
|
|
8
8
|
messages: zod.z.array(zod.z.object({
|
|
9
9
|
role: zod.z.string().describe("The role of the message sender (e.g., 'user', 'assistant')."),
|
|
10
10
|
content: zod.z.string().describe("The content of the message.")
|
|
11
|
-
}).describe("A message in a chat conversation.")).describe("The list of messages to use for generating context. Exactly one of query or messages must be provided.").optional(),
|
|
11
|
+
}).passthrough().describe("A message in a chat conversation.")).describe("The list of messages to use for generating context. Exactly one of query or messages must be provided.").optional(),
|
|
12
12
|
multimodal: zod.z.boolean().describe("Whether to retrieve image-related context snippets. If false, only text snippets are returned. Default is true.").optional(),
|
|
13
13
|
snippet_size: zod.z.number().int().describe("Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.").optional(),
|
|
14
14
|
assistant_host: zod.z.string().describe("The host URL for the assistant (e.g., 'prod-1-data.ke.pinecone.io'). Get this from the assistant configuration."),
|
|
@@ -19,24 +19,24 @@ const PineconeRetrieveContextAssistant_UsageMetricsSchema = zod.z.object({
|
|
|
19
19
|
total_tokens: zod.z.number().int().describe("Total number of tokens used.").nullable().optional(),
|
|
20
20
|
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
|
|
21
21
|
completion_tokens: zod.z.number().int().describe("Number of tokens in the completion.").nullable().optional()
|
|
22
|
-
}).describe("Usage metrics for the context retrieval.");
|
|
22
|
+
}).passthrough().describe("Usage metrics for the context retrieval.");
|
|
23
23
|
const PineconeRetrieveContextAssistant_TextSnippetSchema = zod.z.object({
|
|
24
24
|
type: zod.z.string().describe("The type of snippet (e.g., 'text').").nullable(),
|
|
25
25
|
score: zod.z.number().describe("Relevance score of the snippet.").nullable(),
|
|
26
26
|
content: zod.z.string().describe("The text content of the snippet.").nullable(),
|
|
27
|
-
reference: zod.z.
|
|
28
|
-
}).describe("A text snippet from the context.");
|
|
27
|
+
reference: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Reference information for the snippet source.")
|
|
28
|
+
}).passthrough().describe("A text snippet from the context.");
|
|
29
29
|
const PineconeRetrieveContextAssistant_ImageSnippetSchema = zod.z.object({
|
|
30
30
|
type: zod.z.string().describe("The type of snippet (e.g., 'image').").nullable(),
|
|
31
31
|
score: zod.z.number().describe("Relevance score of the snippet.").nullable(),
|
|
32
|
-
content: zod.z.array(zod.z.
|
|
33
|
-
reference: zod.z.
|
|
34
|
-
}).describe("An image snippet from the context.");
|
|
32
|
+
content: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of image content items."),
|
|
33
|
+
reference: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Reference information for the snippet source.")
|
|
34
|
+
}).passthrough().describe("An image snippet from the context.");
|
|
35
35
|
const PineconeRetrieveContextAssistantOutput = zod.z.object({
|
|
36
36
|
id: zod.z.string().describe("Unique identifier for the context retrieval request.").nullable().optional(),
|
|
37
37
|
usage: PineconeRetrieveContextAssistant_UsageMetricsSchema.nullable(),
|
|
38
38
|
snippets: zod.z.array(zod.z.union([PineconeRetrieveContextAssistant_TextSnippetSchema, PineconeRetrieveContextAssistant_ImageSnippetSchema])).describe("Array of context snippets relevant to the query, can be text or image snippets.").nullable().optional()
|
|
39
|
-
}).describe("Response containing context snippets from the assistant.");
|
|
39
|
+
}).passthrough().describe("Response containing context snippets from the assistant.");
|
|
40
40
|
const pineconeRetrieveContextAssistant = require_action.action("PINECONE_RETRIEVE_CONTEXT_ASSISTANT", {
|
|
41
41
|
slug: "pinecone-retrieve-context-assistant",
|
|
42
42
|
name: "Retrieve Assistant Context",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-context-assistant.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-context-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRetrieveContextAssistantInput = z.object({\n query: z.string().describe(\"The query to generate context for. Exactly one of query or messages must be provided.\").optional(),\n top_k: z.number().int().describe(\"Maximum number of context snippets to return. Default is 16. Maximum is 64.\").optional(),\n filter: z.
|
|
1
|
+
{"version":3,"file":"retrieve-context-assistant.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-context-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRetrieveContextAssistantInput = z.object({\n query: z.string().describe(\"The query to generate context for. Exactly one of query or messages must be provided.\").optional(),\n top_k: z.number().int().describe(\"Maximum number of context snippets to return. Default is 16. Maximum is 64.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter to constrain which documents can be retrieved. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"The role of the message sender (e.g., 'user', 'assistant').\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A message in a chat conversation.\")).describe(\"The list of messages to use for generating context. Exactly one of query or messages must be provided.\").optional(),\n multimodal: z.boolean().describe(\"Whether to retrieve image-related context snippets. If false, only text snippets are returned. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant (e.g., 'prod-1-data.ke.pinecone.io'). Get this from the assistant configuration.\"),\n assistant_name: z.string().describe(\"The name of the assistant to retrieve context from.\"),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are returned, this determines whether to include base64 image data. If false, only image captions are returned. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Request parameters for retrieving context from a Pinecone assistant.\");\nconst PineconeRetrieveContextAssistant_UsageMetricsSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).passthrough().describe(\"Usage metrics for the context retrieval.\");\nconst PineconeRetrieveContextAssistant_TextSnippetSchema = z.object({\n type: z.string().describe(\"The type of snippet (e.g., 'text').\").nullable(),\n score: z.number().describe(\"Relevance score of the snippet.\").nullable(),\n content: z.string().describe(\"The text content of the snippet.\").nullable(),\n reference: z.record(z.string(), z.unknown()).describe(\"Reference information for the snippet source.\"),\n}).passthrough().describe(\"A text snippet from the context.\");\nconst PineconeRetrieveContextAssistant_ImageSnippetSchema = z.object({\n type: z.string().describe(\"The type of snippet (e.g., 'image').\").nullable(),\n score: z.number().describe(\"Relevance score of the snippet.\").nullable(),\n content: z.array(z.record(z.string(), z.unknown())).describe(\"Array of image content items.\"),\n reference: z.record(z.string(), z.unknown()).describe(\"Reference information for the snippet source.\"),\n}).passthrough().describe(\"An image snippet from the context.\");\nexport const PineconeRetrieveContextAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the context retrieval request.\").nullable().optional(),\n usage: PineconeRetrieveContextAssistant_UsageMetricsSchema.nullable(),\n snippets: z.array(z.union([PineconeRetrieveContextAssistant_TextSnippetSchema, PineconeRetrieveContextAssistant_ImageSnippetSchema])).describe(\"Array of context snippets relevant to the query, can be text or image snippets.\").nullable().optional(),\n}).passthrough().describe(\"Response containing context snippets from the assistant.\");\n\nexport const pineconeRetrieveContextAssistant = action(\"PINECONE_RETRIEVE_CONTEXT_ASSISTANT\", {\n slug: \"pinecone-retrieve-context-assistant\",\n name: \"Retrieve Assistant Context\",\n description: \"Tool to retrieve context snippets from a Pinecone assistant for RAG or agentic workflows. Use when you need to fetch relevant document snippets based on a query or conversation messages to provide context for language model responses.\",\n input: PineconeRetrieveContextAssistantInput,\n output: PineconeRetrieveContextAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAA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G,OAAO,oDAAoD,SAAS;CACpE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,oDAAoD,mDAAmD,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PineconeRetrieveContextAssistantInput: z.ZodObject<{
|
|
5
5
|
query: z.ZodOptional<z.ZodString>;
|
|
6
6
|
top_k: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
filter: z.ZodOptional<z.
|
|
7
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
9
|
role: z.ZodString;
|
|
10
10
|
content: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>>;
|
|
12
12
|
multimodal: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
snippet_size: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
assistant_host: z.ZodString;
|
|
@@ -21,26 +21,27 @@ declare const PineconeRetrieveContextAssistantOutput: z.ZodObject<{
|
|
|
21
21
|
total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
22
|
prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
snippets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
score: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
content: z.ZodNullable<z.ZodString>;
|
|
29
|
-
reference: z.
|
|
30
|
-
}, z.core.$
|
|
29
|
+
reference: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
31
|
type: z.ZodNullable<z.ZodString>;
|
|
32
32
|
score: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
content: z.ZodArray<z.
|
|
34
|
-
reference: z.
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
33
|
+
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
reference: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
35
|
+
}, z.core.$loose>]>>>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const pineconeRetrieveContextAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
assistant_host: string;
|
|
39
39
|
assistant_name: string;
|
|
40
40
|
query?: string | undefined;
|
|
41
41
|
top_k?: number | undefined;
|
|
42
|
-
filter?: Record<string,
|
|
42
|
+
filter?: Record<string, unknown> | undefined;
|
|
43
43
|
messages?: {
|
|
44
|
+
[x: string]: unknown;
|
|
44
45
|
role: string;
|
|
45
46
|
content: string;
|
|
46
47
|
}[] | undefined;
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PineconeRetrieveContextAssistantInput: z.ZodObject<{
|
|
5
5
|
query: z.ZodOptional<z.ZodString>;
|
|
6
6
|
top_k: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
filter: z.ZodOptional<z.
|
|
7
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
9
|
role: z.ZodString;
|
|
10
10
|
content: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>>;
|
|
12
12
|
multimodal: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
snippet_size: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
assistant_host: z.ZodString;
|
|
@@ -21,26 +21,27 @@ declare const PineconeRetrieveContextAssistantOutput: z.ZodObject<{
|
|
|
21
21
|
total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
22
|
prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
snippets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
score: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
content: z.ZodNullable<z.ZodString>;
|
|
29
|
-
reference: z.
|
|
30
|
-
}, z.core.$
|
|
29
|
+
reference: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
31
|
type: z.ZodNullable<z.ZodString>;
|
|
32
32
|
score: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
content: z.ZodArray<z.
|
|
34
|
-
reference: z.
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
33
|
+
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
reference: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
35
|
+
}, z.core.$loose>]>>>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const pineconeRetrieveContextAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
assistant_host: string;
|
|
39
39
|
assistant_name: string;
|
|
40
40
|
query?: string | undefined;
|
|
41
41
|
top_k?: number | undefined;
|
|
42
|
-
filter?: Record<string,
|
|
42
|
+
filter?: Record<string, unknown> | undefined;
|
|
43
43
|
messages?: {
|
|
44
|
+
[x: string]: unknown;
|
|
44
45
|
role: string;
|
|
45
46
|
content: string;
|
|
46
47
|
}[] | undefined;
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
const PineconeRetrieveContextAssistantInput = z.object({
|
|
5
5
|
query: z.string().describe("The query to generate context for. Exactly one of query or messages must be provided.").optional(),
|
|
6
6
|
top_k: z.number().int().describe("Maximum number of context snippets to return. Default is 16. Maximum is 64.").optional(),
|
|
7
|
-
filter: z.
|
|
7
|
+
filter: z.record(z.string(), z.unknown()).describe("Metadata filter to constrain which documents can be retrieved. Example: {\"genre\": {\"$ne\": \"documentary\"}}").optional(),
|
|
8
8
|
messages: z.array(z.object({
|
|
9
9
|
role: z.string().describe("The role of the message sender (e.g., 'user', 'assistant')."),
|
|
10
10
|
content: z.string().describe("The content of the message.")
|
|
11
|
-
}).describe("A message in a chat conversation.")).describe("The list of messages to use for generating context. Exactly one of query or messages must be provided.").optional(),
|
|
11
|
+
}).passthrough().describe("A message in a chat conversation.")).describe("The list of messages to use for generating context. Exactly one of query or messages must be provided.").optional(),
|
|
12
12
|
multimodal: z.boolean().describe("Whether to retrieve image-related context snippets. If false, only text snippets are returned. Default is true.").optional(),
|
|
13
13
|
snippet_size: z.number().int().describe("Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.").optional(),
|
|
14
14
|
assistant_host: z.string().describe("The host URL for the assistant (e.g., 'prod-1-data.ke.pinecone.io'). Get this from the assistant configuration."),
|
|
@@ -19,19 +19,19 @@ const PineconeRetrieveContextAssistant_UsageMetricsSchema = z.object({
|
|
|
19
19
|
total_tokens: z.number().int().describe("Total number of tokens used.").nullable().optional(),
|
|
20
20
|
prompt_tokens: z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
|
|
21
21
|
completion_tokens: z.number().int().describe("Number of tokens in the completion.").nullable().optional()
|
|
22
|
-
}).describe("Usage metrics for the context retrieval.");
|
|
22
|
+
}).passthrough().describe("Usage metrics for the context retrieval.");
|
|
23
23
|
const PineconeRetrieveContextAssistant_TextSnippetSchema = z.object({
|
|
24
24
|
type: z.string().describe("The type of snippet (e.g., 'text').").nullable(),
|
|
25
25
|
score: z.number().describe("Relevance score of the snippet.").nullable(),
|
|
26
26
|
content: z.string().describe("The text content of the snippet.").nullable(),
|
|
27
|
-
reference: z.
|
|
28
|
-
}).describe("A text snippet from the context.");
|
|
27
|
+
reference: z.record(z.string(), z.unknown()).describe("Reference information for the snippet source.")
|
|
28
|
+
}).passthrough().describe("A text snippet from the context.");
|
|
29
29
|
const PineconeRetrieveContextAssistant_ImageSnippetSchema = z.object({
|
|
30
30
|
type: z.string().describe("The type of snippet (e.g., 'image').").nullable(),
|
|
31
31
|
score: z.number().describe("Relevance score of the snippet.").nullable(),
|
|
32
|
-
content: z.array(z.
|
|
33
|
-
reference: z.
|
|
34
|
-
}).describe("An image snippet from the context.");
|
|
32
|
+
content: z.array(z.record(z.string(), z.unknown())).describe("Array of image content items."),
|
|
33
|
+
reference: z.record(z.string(), z.unknown()).describe("Reference information for the snippet source.")
|
|
34
|
+
}).passthrough().describe("An image snippet from the context.");
|
|
35
35
|
const pineconeRetrieveContextAssistant = action("PINECONE_RETRIEVE_CONTEXT_ASSISTANT", {
|
|
36
36
|
slug: "pinecone-retrieve-context-assistant",
|
|
37
37
|
name: "Retrieve Assistant Context",
|
|
@@ -41,7 +41,7 @@ const pineconeRetrieveContextAssistant = action("PINECONE_RETRIEVE_CONTEXT_ASSIS
|
|
|
41
41
|
id: z.string().describe("Unique identifier for the context retrieval request.").nullable().optional(),
|
|
42
42
|
usage: PineconeRetrieveContextAssistant_UsageMetricsSchema.nullable(),
|
|
43
43
|
snippets: z.array(z.union([PineconeRetrieveContextAssistant_TextSnippetSchema, PineconeRetrieveContextAssistant_ImageSnippetSchema])).describe("Array of context snippets relevant to the query, can be text or image snippets.").nullable().optional()
|
|
44
|
-
}).describe("Response containing context snippets from the assistant.")
|
|
44
|
+
}).passthrough().describe("Response containing context snippets from the assistant.")
|
|
45
45
|
});
|
|
46
46
|
//#endregion
|
|
47
47
|
export { pineconeRetrieveContextAssistant };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-context-assistant.mjs","names":[],"sources":["../../src/actions/retrieve-context-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRetrieveContextAssistantInput = z.object({\n query: z.string().describe(\"The query to generate context for. Exactly one of query or messages must be provided.\").optional(),\n top_k: z.number().int().describe(\"Maximum number of context snippets to return. Default is 16. Maximum is 64.\").optional(),\n filter: z.
|
|
1
|
+
{"version":3,"file":"retrieve-context-assistant.mjs","names":[],"sources":["../../src/actions/retrieve-context-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeRetrieveContextAssistantInput = z.object({\n query: z.string().describe(\"The query to generate context for. Exactly one of query or messages must be provided.\").optional(),\n top_k: z.number().int().describe(\"Maximum number of context snippets to return. Default is 16. Maximum is 64.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter to constrain which documents can be retrieved. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"The role of the message sender (e.g., 'user', 'assistant').\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A message in a chat conversation.\")).describe(\"The list of messages to use for generating context. Exactly one of query or messages must be provided.\").optional(),\n multimodal: z.boolean().describe(\"Whether to retrieve image-related context snippets. If false, only text snippets are returned. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant (e.g., 'prod-1-data.ke.pinecone.io'). Get this from the assistant configuration.\"),\n assistant_name: z.string().describe(\"The name of the assistant to retrieve context from.\"),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are returned, this determines whether to include base64 image data. If false, only image captions are returned. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Request parameters for retrieving context from a Pinecone assistant.\");\nconst PineconeRetrieveContextAssistant_UsageMetricsSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).passthrough().describe(\"Usage metrics for the context retrieval.\");\nconst PineconeRetrieveContextAssistant_TextSnippetSchema = z.object({\n type: z.string().describe(\"The type of snippet (e.g., 'text').\").nullable(),\n score: z.number().describe(\"Relevance score of the snippet.\").nullable(),\n content: z.string().describe(\"The text content of the snippet.\").nullable(),\n reference: z.record(z.string(), z.unknown()).describe(\"Reference information for the snippet source.\"),\n}).passthrough().describe(\"A text snippet from the context.\");\nconst PineconeRetrieveContextAssistant_ImageSnippetSchema = z.object({\n type: z.string().describe(\"The type of snippet (e.g., 'image').\").nullable(),\n score: z.number().describe(\"Relevance score of the snippet.\").nullable(),\n content: z.array(z.record(z.string(), z.unknown())).describe(\"Array of image content items.\"),\n reference: z.record(z.string(), z.unknown()).describe(\"Reference information for the snippet source.\"),\n}).passthrough().describe(\"An image snippet from the context.\");\nexport const PineconeRetrieveContextAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the context retrieval request.\").nullable().optional(),\n usage: PineconeRetrieveContextAssistant_UsageMetricsSchema.nullable(),\n snippets: z.array(z.union([PineconeRetrieveContextAssistant_TextSnippetSchema, PineconeRetrieveContextAssistant_ImageSnippetSchema])).describe(\"Array of context snippets relevant to the query, can be text or image snippets.\").nullable().optional(),\n}).passthrough().describe(\"Response containing context snippets from the assistant.\");\n\nexport const pineconeRetrieveContextAssistant = action(\"PINECONE_RETRIEVE_CONTEXT_ASSISTANT\", {\n slug: \"pinecone-retrieve-context-assistant\",\n name: \"Retrieve Assistant Context\",\n description: \"Tool to retrieve context snippets from a Pinecone assistant for RAG or agentic workflows. Use when you need to fetch relevant document snippets based on a query or conversation messages to provide context for language model responses.\",\n input: PineconeRetrieveContextAssistantInput,\n output: PineconeRetrieveContextAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC/K,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC1L,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC7J,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC9I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACzF,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,sDAAsD,EAAE,OAAO;CACnE,cAAc,EAAE,OAAO,C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b,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,oDAAoD,SAAS;EACpE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,oDAAoD,mDAAmD,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const PineconeSearchRecordsNamespaceInput = zod.z.object({
|
|
|
5
5
|
query: zod.z.object({
|
|
6
6
|
id: zod.z.string().describe("Record ID to use as query vector").optional(),
|
|
7
7
|
top_k: zod.z.number().int().describe("Number of similar records to return"),
|
|
8
|
-
filter: zod.z.
|
|
8
|
+
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata filter expression for limiting search results").optional(),
|
|
9
9
|
inputs: zod.z.object({ text: zod.z.string().describe("Text to be embedded for similarity search").optional() }).describe("Text embedding inputs for query.").optional(),
|
|
10
10
|
vector: zod.z.object({
|
|
11
11
|
values: zod.z.array(zod.z.number()).describe("Dense vector values for similarity search").optional(),
|
|
@@ -15,7 +15,7 @@ const PineconeSearchRecordsNamespaceInput = zod.z.object({
|
|
|
15
15
|
indices: zod.z.array(zod.z.number().int()).describe("Sparse vector indices")
|
|
16
16
|
}).describe("Sparse vector values specification.").optional()
|
|
17
17
|
}).describe("Query vector specification for similarity search.").optional(),
|
|
18
|
-
match_terms: zod.z.object({ terms: zod.z.
|
|
18
|
+
match_terms: zod.z.object({ terms: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Term matching criteria as key-value pairs").optional() }).describe("Term matching constraints for filtering results.").optional()
|
|
19
19
|
}).describe("Query configuration including top_k and optional filters, vector, or ID"),
|
|
20
20
|
fields: zod.z.array(zod.z.string()).describe("Fields to include in results").optional(),
|
|
21
21
|
rerank: zod.z.object({
|
|
@@ -32,17 +32,17 @@ const PineconeSearchRecordsNamespace_UsageMetricsSchema = zod.z.object({
|
|
|
32
32
|
read_units: zod.z.number().int().describe("Read units consumed by the operation").nullable().optional(),
|
|
33
33
|
rerank_units: zod.z.number().int().describe("Reranking units consumed").nullable().optional(),
|
|
34
34
|
embed_total_tokens: zod.z.number().int().describe("Total embedding tokens used").nullable().optional()
|
|
35
|
-
}).describe("Usage metrics for the search operation.");
|
|
35
|
+
}).passthrough().describe("Usage metrics for the search operation.");
|
|
36
36
|
const PineconeSearchRecordsNamespace_HitRecordSchema = zod.z.object({
|
|
37
37
|
_id: zod.z.string().describe("Record identifier").nullable().optional(),
|
|
38
38
|
_score: zod.z.number().describe("Similarity score").nullable().optional(),
|
|
39
|
-
fields: zod.z.
|
|
40
|
-
}).describe("A single matched record from search results.");
|
|
41
|
-
const PineconeSearchRecordsNamespace_SearchResultSchema = zod.z.object({ hits: zod.z.array(PineconeSearchRecordsNamespace_HitRecordSchema).describe("Array of matched records").nullable().optional() }).describe("Search results containing matched records.");
|
|
39
|
+
fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Selected record fields as key-value pairs").nullable().optional()
|
|
40
|
+
}).passthrough().describe("A single matched record from search results.");
|
|
41
|
+
const PineconeSearchRecordsNamespace_SearchResultSchema = zod.z.object({ hits: zod.z.array(PineconeSearchRecordsNamespace_HitRecordSchema).describe("Array of matched records").nullable().optional() }).passthrough().describe("Search results containing matched records.");
|
|
42
42
|
const PineconeSearchRecordsNamespaceOutput = zod.z.object({
|
|
43
43
|
usage: PineconeSearchRecordsNamespace_UsageMetricsSchema.nullable().optional(),
|
|
44
44
|
result: PineconeSearchRecordsNamespace_SearchResultSchema.nullable().optional()
|
|
45
|
-
}).describe("Response model for namespace search operation.");
|
|
45
|
+
}).passthrough().describe("Response model for namespace search operation.");
|
|
46
46
|
const pineconeSearchRecordsNamespace = require_action.action("PINECONE_SEARCH_RECORDS_NAMESPACE", {
|
|
47
47
|
slug: "pinecone-search-records-namespace",
|
|
48
48
|
name: "Search Records in Namespace",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records-namespace.cjs","names":["z","action"],"sources":["../../src/actions/search-records-namespace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeSearchRecordsNamespaceInput = z.object({\n query: z.object({\n id: z.string().describe(\"Record ID to use as query vector\").optional(),\n top_k: z.number().int().describe(\"Number of similar records to return\"),\n filter: z.
|
|
1
|
+
{"version":3,"file":"search-records-namespace.cjs","names":["z","action"],"sources":["../../src/actions/search-records-namespace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeSearchRecordsNamespaceInput = z.object({\n query: z.object({\n id: z.string().describe(\"Record ID to use as query vector\").optional(),\n top_k: z.number().int().describe(\"Number of similar records to return\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter expression for limiting search results\").optional(),\n inputs: z.object({\n text: z.string().describe(\"Text to be embedded for similarity search\").optional(),\n}).describe(\"Text embedding inputs for query.\").optional(),\n vector: z.object({\n values: z.array(z.number()).describe(\"Dense vector values for similarity search\").optional(),\n indices: z.array(z.number().int()).describe(\"Sparse vector indices\").optional(),\n sparse_values: z.object({\n values: z.array(z.number()).describe(\"Sparse vector values\"),\n indices: z.array(z.number().int()).describe(\"Sparse vector indices\"),\n}).describe(\"Sparse vector values specification.\").optional(),\n}).describe(\"Query vector specification for similarity search.\").optional(),\n match_terms: z.object({\n terms: z.record(z.string(), z.unknown()).describe(\"Term matching criteria as key-value pairs\").optional(),\n}).describe(\"Term matching constraints for filtering results.\").optional(),\n}).describe(\"Query configuration including top_k and optional filters, vector, or ID\"),\n fields: z.array(z.string()).describe(\"Fields to include in results\").optional(),\n rerank: z.object({\n model: z.string().describe(\"Reranking model name\"),\n query: z.string().describe(\"Query text for reranking\").optional(),\n top_n: z.number().int().describe(\"Number of results to return after reranking\").optional(),\n parameters: z.object({}).describe(\"Model-specific parameters for reranking.\").optional(),\n rank_fields: z.array(z.string()).describe(\"Fields to use for reranking\"),\n}).describe(\"Reranking configuration for search results.\").optional(),\n namespace: z.string().describe(\"The namespace to search within\"),\n index_host: z.string().describe(\"The host URL for the Pinecone index (e.g., 'my-index-abc123.svc.pinecone.io'). Get this from listing indexes.\"),\n}).describe(\"Request model for searching records within a namespace.\");\nconst PineconeSearchRecordsNamespace_UsageMetricsSchema = z.object({\n read_units: z.number().int().describe(\"Read units consumed by the operation\").nullable().optional(),\n rerank_units: z.number().int().describe(\"Reranking units consumed\").nullable().optional(),\n embed_total_tokens: z.number().int().describe(\"Total embedding tokens used\").nullable().optional(),\n}).passthrough().describe(\"Usage metrics for the search operation.\");\nconst PineconeSearchRecordsNamespace_HitRecordSchema = z.object({\n _id: z.string().describe(\"Record identifier\").nullable().optional(),\n _score: z.number().describe(\"Similarity score\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Selected record fields as key-value pairs\").nullable().optional(),\n}).passthrough().describe(\"A single matched record from search results.\");\nconst PineconeSearchRecordsNamespace_SearchResultSchema = z.object({\n hits: z.array(PineconeSearchRecordsNamespace_HitRecordSchema).describe(\"Array of matched records\").nullable().optional(),\n}).passthrough().describe(\"Search results containing matched records.\");\nexport const PineconeSearchRecordsNamespaceOutput = z.object({\n usage: PineconeSearchRecordsNamespace_UsageMetricsSchema.nullable().optional(),\n result: PineconeSearchRecordsNamespace_SearchResultSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for namespace search operation.\");\n\nexport const pineconeSearchRecordsNamespace = action(\"PINECONE_SEARCH_RECORDS_NAMESPACE\", {\n slug: \"pinecone-search-records-namespace\",\n name: \"Search Records in Namespace\",\n description: \"Tool to search records within a Pinecone namespace using text, vector, or ID query. Use when you need to find similar records based on embeddings or record IDs. Results can optionally be reranked for relevance.\",\n input: PineconeSearchRecordsNamespaceInput,\n output: PineconeSearchRecordsNamespaceOutput,\n});\n"],"mapp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ter: z.ZodOptional<z.
|
|
8
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
10
10
|
text: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>>;
|
|
@@ -18,7 +18,7 @@ declare const PineconeSearchRecordsNamespaceInput: z.ZodObject<{
|
|
|
18
18
|
}, z.core.$strip>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
match_terms: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
terms: z.ZodOptional<z.
|
|
21
|
+
terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -37,20 +37,20 @@ declare const PineconeSearchRecordsNamespaceOutput: z.ZodObject<{
|
|
|
37
37
|
read_units: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
38
|
rerank_units: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
39
|
embed_total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
42
42
|
hits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
43
43
|
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
fields: z.ZodOptional<z.ZodNullable<z.
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
45
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const pineconeSearchRecordsNamespace: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
query: {
|
|
51
51
|
top_k: number;
|
|
52
52
|
id?: string | undefined;
|
|
53
|
-
filter?: Record<string,
|
|
53
|
+
filter?: Record<string, unknown> | undefined;
|
|
54
54
|
inputs?: {
|
|
55
55
|
text?: string | undefined;
|
|
56
56
|
} | undefined;
|
|
@@ -63,7 +63,7 @@ declare const pineconeSearchRecordsNamespace: import("@keystrokehq/action").Work
|
|
|
63
63
|
} | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
match_terms?: {
|
|
66
|
-
terms?: Record<string,
|
|
66
|
+
terms?: Record<string, unknown> | undefined;
|
|
67
67
|
} | undefined;
|
|
68
68
|
};
|
|
69
69
|
namespace: string;
|