RevelryAI.DataCenter (RevelryAI v0.2.0)

View Source

Handles data center operations for the RevelryAI API.

The Data Center is used for:

  • uploading documents
  • managing collections of documents
  • connecting external Data Sources (GitHub, Jira, Notion, etc.)

Not all of these items are currently supported by the RevelryAI API, so there is additional functionality in the UI not yet available in this SDK.

Summary

Functions

Uploads a document to the RevelryAI data center.

Functions

upload_document(path_to_file, config \\ [])

@spec upload_document(map(), Keyword.t()) :: {:ok, map()} | {:error, any()}

Uploads a document to the RevelryAI data center.

Parameters

  • path_to_file: the full path to the file that will be uploaded
  • config (optional): a configuration map used to override default config values

Examples

iex> RevelryAI.DataCenter.upload_document("/path/to/file.txt")
{:ok, %{status: "ok", response: %{"id" => 4}}}