Ask
Type to search
Endpoints

Search

Vrite provides a built-in, workspace-wide hybrid search powered by Weaviate and OpenAI’s API. Vrite chunks and index all content pieces following the headings (document structure) of each piece. The API allows you to both search and get answers to your questions via a question-answering endpoint based on GPT-4o.

Searches the content base using the provided query. Can search for content chunks in the specified variant, content group, or content piece.

Additionally, it provides an option to limit the search results and search the content pieces (rather than chunks) by their title.

GET
/search
Query Parameters
querystring
Required

Query to search

limitnumber

Limit of results to return

variantIdstring

ID of the variant to search in

contentPieceIdstring

ID of the content piece to search in

contentGroupIdstring

ID of the content group to search in

byTitleboolean

Whether to search only by the title

Response object[]
contentPieceIdstring

ID of the content piece

idstring

ID of the content piece

datestring | null

ISO-formatted date metadata of the content piece

titlestring

Title of the content piece

descriptionstring | null

Description of the content piece

tagsstring[]

IDs of the tags assigned to the content piece

coverUrlstring | null

URL of the cover image

coverAltstring | null

Alt text of the cover image

contentGroupIdstring

ID of the content group the piece is directly assigned to

customData

Custom JSON data of the content piece

canonicalLinkstring | null

Canonical link of the content piece

slugstring

Slug of the content piece

filenamestring | null

Filename of the content piece

membersstring[]

IDs of the workspace members assigned to the content piece

breadcrumbstring[]

Breadcrumb leading to the result fragment (title + headings)

contentstring

Raw text of the result

Request
Response
[
  {
    "contentPieceId": "string",
    "contentPiece": {
      "id": "bbe901d9e4a43a17cf660bb5",
      "date": "string",
      "title": "string",
      "description": "string",
      "tags": [
        "deeff099c94664f7f884e2a7"
      ],
      "coverUrl": "string",
      "coverAlt": "string",
      "contentGroupId": "13e4148f79235cea37a45553",
      "customData": "string",
      "canonicalLink": "string",
      "slug": "string",
      "filename": "string",
      "members": [
        "a9a55150f078ba1d1240cc45"
      ]
    },
    "breadcrumb": [
      "string"
    ],
    "content": "string"
  }
]

Uses Vrite search and GPT-4o with RAG to provide a simple question-answering experience for your Vrite workspace. It streams the answer via SSEs. Provides the same content filtering options as the /search endpoint.

GET
/search/ask
Query Parameters
querystring
Required

Query to ask

variantIdstring

ID of the variant to search for references in

contentGroupIdstring

ID of the content group to search for references in

contentPieceIdstring

ID of the content piece to search for references in

Response 200
Request