Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,47 +1,55 @@
|
|
| 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 |
-
|
| 33 |
-
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
title: Agentic Research Abstract Generator & Web Summariser-2
|
| 4 |
+
sdk: gradio
|
| 5 |
+
emoji: π
|
| 6 |
+
colorFrom: red
|
| 7 |
+
colorTo: green
|
| 8 |
+
---
|
| 9 |
+
## π§ Agentic Research Abstract Generator & Web Summariser-2
|
| 10 |
+
An agent-based system using LangGraph and HuggingFace models to generate research abstracts and summarize web content, with modular workflows, memory handling, and task-specific agents.
|
| 11 |
+
|
| 12 |
+
This builds upon the previous repo
|
| 13 |
+
- [Project Link](https://github.com/daniau23/agentic_researcher)
|
| 14 |
+
- [ReadyTensor-Publication](https://app.readytensor.ai/publications/the-agentic-research-abstract-generator-and-web-content-summariser-agent-with-langraph-gYeyu875mKsB)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
### π Features Improvements
|
| 18 |
+
- π Evaluation metrics and logging
|
| 19 |
+
- π Evaluation metrics and logging
|
| 20 |
+
- π Testing features incorporated
|
| 21 |
+
- π Model deployment with streamlit
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+
### **How the project goes**
|
| 26 |
+
- All files can only work after installing all dependencies in the `environment.yml` file
|
| 27 |
+
- The `notebooks folder` contains the jupyter notebook file for testing the project as a whole and for experimenting. `research_graph2.ipynb` contains the experimentation for abstract generation while `research_graph3.ipynb` contains the experimentation for web content summarisation.
|
| 28 |
+
- The `graph_article` folder contains the critic, writer and graph_article python files. The `writer.py`(writer agent) file takes the category and title needed for drafting the abstract while the `critic.py` (reviewer agent) reviews the generated abstract. The `graph_article.py` connects boths `writer.py`and `critic.py` by using LangGraph.
|
| 29 |
+
- The graph_web folder contains the grap_web, loader, search and summarizer python files. The `search.py` (search agent) file searches takes in the URL link for web search, while the `loader.py` (loader agent) loads the web page but limits it to appoximately 32,000 tokens to not exceed the max token limit. The summarizer agent in `summarizer.py` files, provides a concise summary for the the URL given. The graph_web.py connects all components together as one.
|
| 30 |
+
- The utils folder contains the `visualizer.py` file which creates the graphs of the `grah_web.py` and `graph_article.py` files when called in `main.py`. The generatd graphs are saved to the visuals folder.
|
| 31 |
+
- The `shared.py` file contains the shared state for the summarizer and abstract generator graphs.
|
| 32 |
+
- The `main.py` file calls all graphs together and prompts the user for if the would like to generate an abstract or summarise a webpage.
|
| 33 |
+
- The img folder contains the images used for visualisation, also `Langsmith_run.png` show the an example run when Langsmith is used for tracing the graph.
|
| 34 |
+
- The tests folder contains all necessary tests for the each component for proper integration of the project, making it ready for deployment.
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+
### **Replicating this project and Example Usage**
|
| 39 |
+
Kindly refer to the GitHub link for the previous project for replication.
|
| 40 |
+
|
| 41 |
+
- **Run `pip install pytest>=8.4` and `pip install pytest-mock==3.14` after using the environment.yml from the previous repo**
|
| 42 |
+
### **Example Streamlit Outputs**
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
**NB:**
|
| 48 |
+
- **You must have a huggingface api key to use the streamlit app. Kindly refer to the previous github repo to know how to generate a huggingface api key**
|
| 49 |
+
|
| 50 |
+
Here is the Publication on;
|
| 51 |
+
- [Edit ReadyTensor](https://app.readytensor.ai/publications/the-agentic-research-abstract-generator-and-web-content-summariser-agent-with-langraph-gYeyu875mKsB)
|
| 52 |
+
|
| 53 |
+
### **Issues faced**:
|
| 54 |
+
- Integrating tests for the LLM agents
|
| 55 |
+
- Conflicts when deploying app on Streamlit, hence the environment.yml file was removed.
|