Records

This section describes the API calls used to create, read, update and delete database records. The page builds upon (and assumes you've read) the API Usage Guide. Please ensure you're familiar with the API calling conventions before reading on.

Search for records in a database (by meaning and concepts)

Version
1.0
View
team
Action
search_database_records
Request Data
objectdatabase

The database to search for records.

stringid

The globally unique identifier of the database.

stringquery

What you would like to search for, in natural language. Typically supplied by an end user through a search bar.

floattemperature

A number between 0 and 1 that indicates how much "creative liberty" a model should have in the results it surfaces. Values closer to 0 attempt to faithfully match the language used in the query, whereas values closer to 1 will maximally search for records that are on point conceptually regardless of the language used.

integerlimit

The maximum number of results to return in this page.

stringcursor

A token used to paginate the search results. Cursors returned in previous responses can be used in subsequent requests.

Response Data
integercount

The number of results returned.

booleanhas_more

Whether there are more results on the next page

stringcursor

A token that can be used to request the next page of results. It's only useful if has_more is true.

array<object>results

A list of results, grouped by record and sorted by score.

floatscore

A relative indicator of the AI model's confidence that the record associated with this result is a good match for the query.

objectrecord

The record associated with this search result.

stringid

The globally unique identifier of the record.

objectdatabase

The database associated with this record.

stringid

The globally unique identifier of the database.

objectcontent

The content of the record, in the form of arbitrary JSON.

array<object>matches

A list of relevant passages from the record, sorted by score.

floatscore

A relative indicator of the AI model's confidence that this passage is a good match for the query.

objectindex

The index associated with this match.

stringid

The globally unique identifier of the index.

stringpassage

The extracted, normalized text from the record. This value is useful for presentation but not highlighting as it may be subtly different from the original text in terms of spacing and minor details.

array<string>highlights

A list of exact, non-normalized passages drawn from the record. This is useful for in-document highlighting. However each individual item may be too specific to display without context - prefer to use the passage field for presentation.

List records in a database

Version
1.0
View
team
Action
list_database_records
Request Data
objectdatabase

The database to search for records.

stringid

The globally unique identifier of the database.

integerlimit

The maximum number of results to return in this page.

stringcursor

A token used to paginate the search results. Cursors returned in previous responses can be used in subsequent requests.

Response Data
integercount

The number of results returned.

booleanhas_more

Whether there are more results on the next page

stringcursor

A token that can be used to request the next page of results. It's only useful if has_more is true.

array<object>results

A list of results.

stringid

The globally unique identifier of the record.

objectdatabase

The database associated with this record.

stringid

The globally unique identifier of the database.

objectcontent

The content of the record, in the form of arbitrary JSON.

Fetch a record

Version
1.0
View
team
Action
fetch_database_record
Request Data
stringid

The globally unique identifier of the record to fetch.

Response Data
stringid

The globally unique identifier of the record.

objectdatabase

The database associated with this record.

stringid

The globally unique identifier of the database.

objectcontent

The content of the record, in the form of arbitrary JSON.

Create a record

Version
1.0
View
team
Action
create_database_record
Request Data
objectdatabase

The database to hold this record.

stringid

The globally unique identifier of the database.

objectcontent

The content of the record, in the form of arbitrary JSON.

Response Data
stringid

A globally unique identifier of the newly created record.

Update a record

Version
1.0
View
team
Action
update_database_record
Request Data
stringid

A globally unique identifier of the record to update.

objectcontent

The content of the record, in the form of arbitrary JSON.

Response Data

Always null if successful.

Delete a record

Version
1.0
View
team
Action
delete_database_record
Request Data
stringid

The globally unique identifier of the record to delete.

Response Data

Always null if successful.

GRAVITAS

© 2021-2025 Noematic.ai