Update Actions Runner (#973)
* Update docker build action * Update runner * Update compose
This commit is contained in:
@@ -10,7 +10,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: [ self-hosted, Linux ]
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Our Go SDK is still under development. We welcome contributions and beta testers for it!
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# R2R JavaScript SDK Documentation
|
||||
|
||||
For the complete look at the R2R JavaScript SDK, [visit our documentation.](https://r2r-docs.sciphi.ai/documentation/js-sdk/introduction)
|
||||
|
||||
## Installation
|
||||
|
||||
Before starting, make sure you have completed the [R2R installation](/documentation/installation).
|
||||
|
||||
Install the R2R JavaScript SDK:
|
||||
|
||||
```bash
|
||||
npm install r2r-js
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
1. Import the R2R client:
|
||||
|
||||
```javascript
|
||||
const { r2rClient } = require('r2r-js');
|
||||
```
|
||||
|
||||
2. Initialize the client:
|
||||
|
||||
```javascript
|
||||
const client = new r2rClient('http://localhost:8000');
|
||||
```
|
||||
|
||||
3. Check if R2R is running correctly:
|
||||
|
||||
```javascript
|
||||
const healthResponse = await client.health();
|
||||
// {"status":"ok"}
|
||||
```
|
||||
|
||||
4. Login (Optional):
|
||||
```javascript
|
||||
// client.register("me@email.com", "my_password"),
|
||||
// client.verify_email("me@email.com", "my_verification_code")
|
||||
client.login("me@email.com", "my_password")
|
||||
```
|
||||
When using authentication the commands below automatically restrict the scope to a user's available documents.
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ networks:
|
||||
|
||||
services:
|
||||
r2r:
|
||||
image: ${R2R_IMAGE:-emrgntcmplxty/r2r}
|
||||
image: ${R2R_IMAGE:-ragtoriches/prod}
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
# R2R Python SDK Documentation
|
||||
|
||||
For the complete look at the R2R Python SDK, [visit our documentation.](https://r2r-docs.sciphi.ai/documentation/python-sdk/introduction)
|
||||
|
||||
## Installation
|
||||
|
||||
Before starting, make sure you have completed the [R2R installation](/documentation/installation).
|
||||
|
||||
Install the R2R Python SDK:
|
||||
|
||||
```bash
|
||||
pip install r2r
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
1. Import the R2R client:
|
||||
|
||||
```python
|
||||
from r2r import R2RClient
|
||||
```
|
||||
|
||||
2. Initialize the client:
|
||||
|
||||
```python
|
||||
client = R2RClient("http://localhost:8000")
|
||||
```
|
||||
|
||||
|
||||
3. Check if R2R is running correctly:
|
||||
|
||||
```python
|
||||
health_response = client.health()
|
||||
# {"status":"ok"}
|
||||
```
|
||||
|
||||
4. Login (Optional):
|
||||
```python
|
||||
# client.register("me@email.com", "my_password")
|
||||
# client.verify_email("me@email.com", "my_verification_code")
|
||||
client.login("me@email.com", "my_password")
|
||||
```
|
||||
When using authentication the commands below automatically restrict the scope to a user's available documents.
|
||||
Reference in New Issue
Block a user