Skip to content

agentset-ai/partition-api-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agentset - Partition API V2


This is the partition API used by the Agentset Platform.

Tech Stack

Deployment

  1. Install dependencies:
uv sync
  1. Create your modal API token (Manage Workspaces -> API Tokens)

  2. Link modal cli to your account (copy the commands from the modal dashboard and run them with uv run):

uv run modal token set --token-id ak-xxx --token-secret as-xxx --profile=example
uv run modal profile activate example
  1. Create secrets (read .env.example for more info about the variables):
# API key to secure the API
uv run modal secret create --force partitioner-secrets AGENTSET_API_KEY=xxx

# Redis host, port, and password
uv run modal secret create --force partitioner-secrets REDIS_HOST=xxx REDIS_PORT=xxx REDIS_PASSWORD=xxx

# Datalab API key
uv run modal secret create --force partitioner-secrets DATALAB_API_KEY=xxx

# R2 access key, secret key, bucket name, endpoint URL, and public URL
uv run modal secret create --force partitioner-secrets R2_ACCESS_KEY_ID=xxx R2_SECRET_ACCESS_KEY=xxx R2_BUCKET_NAME=xxx R2_ENDPOINT_URL=xxx R2_PUBLIC_URL=xxx
  1. Deploy the app:
uv run modal deploy -m src.app
  1. Done 🎉

Now take the URL from the modal dashboard PARTITION_API_URL and the AGENTSET_API_KEY you specified above, and add them to the Agentset Platform as PARTITION_API_URL and PARTITION_API_KEY, respectively.

They should look like this:

PARTITION_API_URL=https://example.modal.run/ingest
PARTITION_API_KEY=xxx

License

This project is open-source under the MIT License. You can find it here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages