Local Setup

Learn how to set up and run InternTA locally.

Prerequisites

Quick Installation

# Clone the repository
git clone https://github.com/kongfoo-ai/internTA

# Go to the project directory
cd InternTA

# Install the dependencies
pip install -r requirements.txt

API Integration

Authentication

To use the InternTA API, you’ll need to include a bearer token in your requests:

curl -X POST "https://api.ecopi.chat/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "internta-v02",
    "messages": [
      {"role": "user", "content": "What is synthetic biology?"}
    ]
  }'

Example Response

{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Synthetic biology is an interdisciplinary field that combines..."
      }
    }
  ]
}

Advanced Usage

Training Your Own Model

Model Evaluation

To evaluate the model’s performance:

# Run evaluation tests
pytest ./test/test_model_evaluation.py

This will generate a test_results.csv file containing ROUGE similarity scores for model responses.

Resources