| Code | Description |
|---|---|
| completion.py | Composing content |
| embed.py | Getting embeddings of any texts |
| gec.py | Correcting text errors |
| improvements.py | Improving writing |
| paraphrase.py | Conveying the same meaning using different words |
| rag.py | Getting contextual answers with the RAG engine |
| search.py | Semantic Search |
| summarize.py | Getting summary of the text |
| segmentation_summarize.py | Summary in paragraphs |
- Set environment variables:
export AI21_API_KEY=
- Install and run the code:
pip3 install -r requirements.txt
python3 src/completion.py