Update README.md
Browse files
README.md
CHANGED
@@ -10,7 +10,48 @@ pinned: false
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
Validating the accuracy or degree of truthfulness of a given piece of information requires **context**—factual and relevant details surrounding the claim. Here’s how we approach this process step-by-step:
|
16 |
|
@@ -111,4 +152,14 @@ Analysis: You can reasonably trust this information, but further verification is
|
|
111 |
3. **Scalable and Cost-Effective**: Uses pre-trained models, FAISS indexing, and simple APIs for implementation.
|
112 |
4. **Interpretability**: Outputs include confidence scores and explanations for transparency.
|
113 |
|
114 |
-
This modular approach ensures that the **truthfulness assessment** is **scalable**, **explainable**, and **adaptable** to new domains.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
+
|
14 |
+
EchoTruth is an AI-powered application that helps you verify the authenticity of news articles in real-time. By using a combination of knowledge graphs, online search, and zero-shot classification models, it provides a truthfulness score, explanation, and sources for the given news input. The application is powered by advanced AI models, ensuring an accurate and up-to-date analysis.
|
15 |
+
|
16 |
+
## How to Clone and Run the Application
|
17 |
+
|
18 |
+
### 1. Create a Conda Environment
|
19 |
+
First, create a new Conda environment with Python 3.10:
|
20 |
+
```bash
|
21 |
+
conda create --prefix ./env python==3.10
|
22 |
+
```
|
23 |
+
|
24 |
+
### 2. Install Required Libraries
|
25 |
+
Next, install the required libraries from the `requirements.txt` file:
|
26 |
+
```bash
|
27 |
+
pip install -r requirements.txt
|
28 |
+
```
|
29 |
+
|
30 |
+
### 3. Use a `.env` File for Secrets
|
31 |
+
Create a `.env` file in the project root directory and include the following keys with your respective API keys:
|
32 |
+
```env
|
33 |
+
SEARCH_API_KEY=""
|
34 |
+
SEARCH_BASE_URL=""
|
35 |
+
SEARCH_MODEL=""
|
36 |
+
GEMINI_API_KEY=""
|
37 |
+
```
|
38 |
+
Make sure to replace the placeholders with your actual API keys.
|
39 |
+
|
40 |
+
### 4. Run the Application
|
41 |
+
Finally, you can run the application by executing:
|
42 |
+
```bash
|
43 |
+
python app.py
|
44 |
+
```
|
45 |
+
This will launch the application, and you can start verifying news authenticity by entering the news text or URL in the provided input box.
|
46 |
+
|
47 |
+
---
|
48 |
+
|
49 |
+
## How It Works
|
50 |
+
|
51 |
+
### Overview
|
52 |
+
EchoTruth uses AI models to check the authenticity of news in real-time by processing the given news or article and validating it using a combination of external search and knowledge graph retrieval.
|
53 |
+
|
54 |
+
### **Implementation Steps: Validating Information with Context**
|
55 |
|
56 |
Validating the accuracy or degree of truthfulness of a given piece of information requires **context**—factual and relevant details surrounding the claim. Here’s how we approach this process step-by-step:
|
57 |
|
|
|
152 |
3. **Scalable and Cost-Effective**: Uses pre-trained models, FAISS indexing, and simple APIs for implementation.
|
153 |
4. **Interpretability**: Outputs include confidence scores and explanations for transparency.
|
154 |
|
155 |
+
This modular approach ensures that the **truthfulness assessment** is **scalable**, **explainable**, and **adaptable** to new domains.
|
156 |
+
|
157 |
+
---
|
158 |
+
|
159 |
+
## Jupyter Notebook: `workflow.ipynb`
|
160 |
+
|
161 |
+
The `workflow.ipynb` file provides a detailed, step-by-step demonstration of the entire EchoTruth process, from fetching online search results and knowledge graph context to calculating the truthfulness score and generating explanations. The notebook includes examples of both true and fake news, and shows how the application processes these inputs.
|
162 |
+
|
163 |
+
To view the workflow:
|
164 |
+
1. Open the Jupyter notebook.
|
165 |
+
2. Follow the cells to see how the system fetches data and evaluates news authenticity for both true and fake news examples.
|