File size: 725 Bytes
49e2e17 7a8b33f 49e2e17 7a8b33f 49e2e17 7a8b33f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
---
title: Filtir
app_file: app.py
sdk: gradio
sdk_version: 4.19.0
---
# Filtir - fact checking pipeline
This repo contains the Filtir pipeline for claim extraction and fact-checking.
## Prerequisites
### Create and prepare venv
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```
### Setup keys
In order to run the code you need to set up the following keys and add them to .env:
- OPENAI_API_KEY - used to call the OpenAI API
- COHERE_API_KEY and WEAVIATE_API_KEY - used for Wikipedia search
- GOOGLE_CLOUD_API_KEY and GOOGLE_CUSTOM_SEARCH_ENGINE_ID - used for Google search
## Run the pipeline
```bash
python run_pipeline.py --file example.txt --model gpt-4-1106-preview
```
|