Needle integration (AI, Data). Imported from open-connector.
https://search.needle.app/api/v1/collections
/api/v1/collections
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | required | The name of the collection to create. |
| file_ids | array | optional | Existing Needle file IDs to attach when the collection is created. |
/api/v1/collections/{collection_id}
| Param | Type | Required | Description |
|---|---|---|---|
| collection_id | string | required | The Needle collection ID. |
/api/v1/collections/{collection_id}/stats
| Param | Type | Required | Description |
|---|---|---|---|
| collection_id | string | required | The Needle collection ID. |
/api/v1/collections/{collection_id}/files
| Param | Type | Required | Description |
|---|---|---|---|
| collection_id | string | required | The Needle collection ID. |
/api/v1/collections/{collection_id}/files
| Param | Type | Required | Description |
|---|---|---|---|
| collection_id | string | required | The Needle collection ID. |
| files | array | required | The URL-backed files that Needle should import. |
/api/v1/collections/{collectionId}/search
| Param | Type | Required | Description |
|---|---|---|---|
| collection_id | string | required | The Needle collection ID. |
| text | string | required | The search query text. |
| top_k | integer | optional | The maximum number of results to return. |
| offset | integer | optional | The zero-based result offset. |
| collectionId | string | required | Path parameter: collectionId |