New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trieve_ruby_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trieve_ruby_client

  • 0.11.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

trieve_ruby_client

TrieveRubyClient - the Ruby gem for the Trieve API

Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.11.0
  • Package version: 0.11.0
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://trieve.ai

Installation

Build a gem

To build the Ruby code into a gem:

gem build trieve_ruby_client.gemspec

Then either install the gem locally:

gem install ./trieve_ruby_client-0.11.0.gem

(for development, run gem install --dev ./trieve_ruby_client-0.11.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'trieve_ruby_client', '~> 0.11.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'trieve_ruby_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'trieve_ruby_client'

# Setup authorization
TrieveRubyClient.configure do |config|
  # Configure API key authorization: ApiKey
  config.api_key['ApiKey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['ApiKey'] = 'Bearer'
end

api_instance = TrieveRubyClient::AnalyticsApi.new
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
cluster_analytics = TrieveRubyClient::ClusterQueries.new({cluster_id: 'cluster_id_example', type: 'cluster_queries'}) # ClusterAnalytics | JSON request payload to filter the graph

begin
  #Get Cluster Analytics
  result = api_instance.get_cluster_analytics(tr_dataset, cluster_analytics)
  p result
rescue TrieveRubyClient::ApiError => e
  puts "Exception when calling AnalyticsApi->get_cluster_analytics: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.trieve.ai

ClassMethodHTTP requestDescription
TrieveRubyClient::AnalyticsApiget_cluster_analyticsPOST /api/analytics/search/clusterGet Cluster Analytics
TrieveRubyClient::AnalyticsApiget_rag_analyticsPOST /api/analytics/ragGet RAG Analytics
TrieveRubyClient::AnalyticsApiget_recommendation_analyticsPOST /api/analytics/recommendationGet Recommendation Analytics
TrieveRubyClient::AnalyticsApiget_search_analyticsPOST /api/analytics/searchGet Search Analytics
TrieveRubyClient::AuthApicallbackGET /api/auth/callbackOpenID Connect callback
TrieveRubyClient::AuthApiget_meGET /api/auth/meGet Me
TrieveRubyClient::AuthApiloginGET /api/authLogin
TrieveRubyClient::AuthApilogoutDELETE /api/authLogout
TrieveRubyClient::ChunkApiautocompletePOST /api/chunk/autocompleteAutocomplete
TrieveRubyClient::ChunkApicount_chunksPOST /api/chunk/countCount chunks above threshold
TrieveRubyClient::ChunkApicreate_chunkPOST /api/chunkCreate or Upsert Chunk or Chunks
TrieveRubyClient::ChunkApidelete_chunkDELETE /api/chunk/{chunk_id}Delete Chunk
TrieveRubyClient::ChunkApidelete_chunk_by_tracking_idDELETE /api/chunk/tracking_id/{tracking_id}Delete Chunk By Tracking Id
TrieveRubyClient::ChunkApigenerate_off_chunksPOST /api/chunk/generateRAG on Specified Chunks
TrieveRubyClient::ChunkApiget_chunk_by_idGET /api/chunk/{chunk_id}Get Chunk By Id
TrieveRubyClient::ChunkApiget_chunk_by_tracking_idGET /api/chunk/tracking_id/{tracking_id}Get Chunk By Tracking Id
TrieveRubyClient::ChunkApiget_chunks_by_idsPOST /api/chunksGet Chunks By Ids
TrieveRubyClient::ChunkApiget_chunks_by_tracking_idsPOST /api/chunks/trackingGet Chunks By Tracking Ids
TrieveRubyClient::ChunkApiget_recommended_chunksPOST /api/chunk/recommendGet Recommended Chunks
TrieveRubyClient::ChunkApiget_suggested_queriesPOST /api/chunk/gen_suggestionsGenerate suggested queries
TrieveRubyClient::ChunkApisearch_chunksPOST /api/chunk/searchSearch
TrieveRubyClient::ChunkApiupdate_chunkPUT /api/chunkUpdate Chunk
TrieveRubyClient::ChunkApiupdate_chunk_by_tracking_idPUT /api/chunk/tracking_id/updateUpdate Chunk By Tracking Id
TrieveRubyClient::ChunkGroupApiadd_chunk_to_groupPOST /api/chunk_group/chunk/{group_id}Add Chunk to Group
TrieveRubyClient::ChunkGroupApiadd_chunk_to_group_by_tracking_idPOST /api/chunk_group/tracking_id/{tracking_id}Add Chunk to Group by Tracking ID
TrieveRubyClient::ChunkGroupApicreate_chunk_groupPOST /api/chunk_groupCreate Chunk Group
TrieveRubyClient::ChunkGroupApidelete_chunk_groupDELETE /api/chunk_group/{group_id}Delete Group
TrieveRubyClient::ChunkGroupApidelete_group_by_tracking_idDELETE /api/chunk_group/tracking_id/{tracking_id}Delete Group by Tracking ID
TrieveRubyClient::ChunkGroupApiget_chunk_groupGET /api/chunk_group/{group_id}Get Group
TrieveRubyClient::ChunkGroupApiget_chunks_in_groupGET /api/chunk_group/{group_id}/{page}Get Chunks in Group
TrieveRubyClient::ChunkGroupApiget_chunks_in_group_by_tracking_idGET /api/chunk_group/tracking_id/{group_tracking_id}/{page}Get Chunks in Group by Tracking ID
TrieveRubyClient::ChunkGroupApiget_group_by_tracking_idGET /api/chunk_group/tracking_id/{tracking_id}Get Group by Tracking ID
TrieveRubyClient::ChunkGroupApiget_groups_chunk_is_inPOST /api/chunk_group/chunksGet Groups for Chunks
TrieveRubyClient::ChunkGroupApiget_groups_for_datasetGET /api/dataset/groups/{dataset_id}/{page}Get Groups for Dataset
TrieveRubyClient::ChunkGroupApiget_recommended_groupsPOST /api/chunk_group/recommendGet Recommended Groups
TrieveRubyClient::ChunkGroupApiremove_chunk_from_groupDELETE /api/chunk_group/chunk/{group_id}Remove Chunk from Group
TrieveRubyClient::ChunkGroupApisearch_over_groupsPOST /api/chunk_group/group_oriented_searchSearch Over Groups
TrieveRubyClient::ChunkGroupApisearch_within_groupPOST /api/chunk_group/searchSearch Within Group
TrieveRubyClient::ChunkGroupApiupdate_chunk_groupPUT /api/chunk_groupUpdate Group
TrieveRubyClient::ChunkGroupApiupdate_group_by_tracking_idPUT /api/chunk_group/tracking_id/{tracking_id}Update Group by Tracking ID
TrieveRubyClient::DatasetApiclear_datasetPUT /api/dataset/clear/{dataset_id}Clear Dataset
TrieveRubyClient::DatasetApicreate_datasetPOST /api/datasetCreate dataset
TrieveRubyClient::DatasetApidelete_datasetDELETE /api/dataset/{dataset_id}Delete Dataset
TrieveRubyClient::DatasetApidelete_dataset_by_tracking_idDELETE /api/dataset/tracking_id/{tracking_id}Delete Dataset by Tracking ID
TrieveRubyClient::DatasetApiget_datasetGET /api/dataset/{dataset_id}Get Dataset
TrieveRubyClient::DatasetApiget_datasets_from_organizationGET /api/dataset/organization/{organization_id}Get Datasets from Organization
TrieveRubyClient::DatasetApiget_usage_by_dataset_idGET /api/dataset/usage/{dataset_id}Get Usage By Dataset ID
TrieveRubyClient::DatasetApiupdate_datasetPUT /api/datasetUpdate Dataset
TrieveRubyClient::EventsApiget_eventsPOST /api/eventsGet events for the dataset
TrieveRubyClient::FileApidelete_file_handlerDELETE /api/file/{file_id}Delete File
TrieveRubyClient::FileApiget_dataset_files_handlerGET /api/dataset/files/{dataset_id}/{page}Get Files for Dataset
TrieveRubyClient::FileApiget_file_handlerGET /api/file/{file_id}Get File
TrieveRubyClient::FileApiupload_file_handlerPOST /api/fileUpload File
TrieveRubyClient::HealthApihealth_checkGET /api/healthHealth Check
TrieveRubyClient::InvitationApipost_invitationPOST /api/invitationSend Invitation
TrieveRubyClient::MessageApicreate_messagePOST /api/messageCreate message
TrieveRubyClient::MessageApiedit_messagePUT /api/messageEdit message
TrieveRubyClient::MessageApiget_all_topic_messagesGET /api/messages/{messages_topic_id}Get all messages for a given topic
TrieveRubyClient::MessageApiregenerate_messageDELETE /api/messageRegenerate message
TrieveRubyClient::MetricsApiget_metricsPOST /metricsGet Prometheus Metrics
TrieveRubyClient::OrganizationApicreate_organizationPOST /api/organizationCreate Organization
TrieveRubyClient::OrganizationApidelete_organizationDELETE /api/organization/{organization_id}Delete Organization
TrieveRubyClient::OrganizationApiget_organizationGET /api/organization/{organization_id}Get Organization
TrieveRubyClient::OrganizationApiget_organization_usageGET /api/organization/usage/{organization_id}Get Organization Usage
TrieveRubyClient::OrganizationApiget_organization_usersGET /api/organization/users/{organization_id}Get Organization Users
TrieveRubyClient::OrganizationApiupdate_organizationPUT /api/organizationUpdate Organization
TrieveRubyClient::StripeApicancel_subscriptionDELETE /api/stripe/subscription/{subscription_id}Cancel Subscription
TrieveRubyClient::StripeApicreate_setup_checkout_sessionPOST /api/stripe/checkout/setup/{organization_id}Create checkout session setup
TrieveRubyClient::StripeApidirect_to_payment_linkGET /api/stripe/payment_link/{plan_id}/{organization_id}Checkout
TrieveRubyClient::StripeApiget_all_invoicesGET /api/stripe/invoices/{organization_id}Get All Invoices
TrieveRubyClient::StripeApiget_all_plansGET /api/stripe/plansGet All Plans
TrieveRubyClient::StripeApiupdate_subscription_planPATCH /api/stripe/subscription_plan/{subscription_id}/{plan_id}Update Subscription Plan
TrieveRubyClient::TopicApicreate_topicPOST /api/topicCreate Topic
TrieveRubyClient::TopicApidelete_topicDELETE /api/topic/{topic_id}Delete Topic
TrieveRubyClient::TopicApiget_all_topics_for_owner_idGET /api/topic/owner/{owner_id}Get All Topics for Owner ID
TrieveRubyClient::TopicApiupdate_topicPUT /api/topicUpdate Topic
TrieveRubyClient::UserApidelete_user_api_keyDELETE /api/user/api_key/{api_key_id}Delete User Api Key
TrieveRubyClient::UserApiset_user_api_keyPOST /api/user/api_keySet User Api Key
TrieveRubyClient::UserApiupdate_userPUT /api/userUpdate User

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

ApiKey

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

X-API-KEY

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

FAQs

Package last updated on 15 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc