query_project
Submit natural language queries to search and retrieve documents from a specific project and collection, returning structured results.
Instructions
Watson Discovery Query Project
Description
Search your data by submitting queries that are written in natural language for the specified project and collections. The query returns a list of documents that match the query criteria.
Function
This tool connects to your IBM Watson Discovery instance using your provided authentication credentials, listing the available documents of a project and collections, and returns structured information about each document.
Use Cases
Search and retrieve documents from a specific project and collection
Integration with automated workflows that require document retrieval
Authentication
This tool requires valid IBM Cloud IAM API credentials to access your Watson Discovery instance. Ensure your service account has appropriate permissions to query projects.
Output Format
Results are returned as a structured array of result objects, each containing:
document_id: The unique identifier of the document (string)result_metadata: Metadata of a query result (object)metadata: Metadata of the document (object)document_passages: Passages from the document that best matches the query (object)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| collection_id | Yes | ||
| natural_language_query | Yes | ||
| count | No | ||
| filter | No |