mentortools/libs/: rag-server-connector-v2-0.2.1+2385338805 metadata and description
Mentortools RAG service
| author | OpenAPI Generator community |
| author_email | OpenAPI Generator Community <team@openapitools.org> |
| description_content_type | text/markdown |
| keywords | OpenAPI, OpenAPI-Generator, Mentortools RAG service |
| project_urls |
|
| requires_dist |
|
| requires_python | >=3.9 |
| File | Tox results | History |
|---|---|---|
rag_server_connector_v2-0.2.1+2385338805-py3-none-any.whl
|
|
|
rag_server_connector_v2-0.2.1+2385338805.tar.gz
|
|
rag-server-connector-v2
API for indexing lessons information into a vector database
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 0.2.1+2385338805
- Generator version: 7.20.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import rag_server_connector_v2
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import rag_server_connector_v2
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import rag_server_connector_v2
from rag_server_connector_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = rag_server_connector_v2.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKeyHeader
configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer'
# Enter a context with an instance of the API client
async with rag_server_connector_v2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rag_server_connector_v2.DefaultApi(api_client)
batch_delete_data = rag_server_connector_v2.BatchDeleteData() # BatchDeleteData |
try:
# Batch Delete Sources
api_response = await api_instance.batch_delete_sources_sources_batch_index_delete(batch_delete_data)
print("The response of DefaultApi->batch_delete_sources_sources_batch_index_delete:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->batch_delete_sources_sources_batch_index_delete: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | batch_delete_sources_sources_batch_index_delete | DELETE /sources/batch/index | Batch Delete Sources |
| DefaultApi | batch_index_sources_sources_batch_index_put | PUT /sources/batch/index | Batch Index Sources |
| DefaultApi | delete_source_index_sources_index_delete | DELETE /sources/index | Delete Source Index |
| DefaultApi | health_check_health_get | GET /health | Health Check |
| DefaultApi | index_source_sources_index_put | PUT /sources/index | Index Source |
| DefaultApi | search_sources_get_sources_search_get | GET /sources/search | Search Sources Get |
| DefaultApi | search_sources_post_sources_search_post | POST /sources/search | Search Sources Post |
Documentation For Models
- BatchDeleteData
- BatchIndexData
- HTTPValidationError
- IndexData
- LocationInner
- SearchRequestBody
- SearchResult
- ValidationError
Documentation For Authorization
Authentication schemes defined for the API:
APIKeyHeader
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header