Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -31,14 +31,14 @@ The application follows a modular RAG pipeline:
|
|
| 31 |
### Setup
|
| 32 |
1. Clone the repository:
|
| 33 |
```bash
|
| 34 |
-
git clone
|
| 35 |
cd rag-chatbot
|
| 36 |
```
|
| 37 |
|
| 38 |
2. Create and activate a virtual environment:
|
| 39 |
```bash
|
| 40 |
python -m venv venv
|
| 41 |
-
source venv/bin/activate
|
| 42 |
```
|
| 43 |
|
| 44 |
3. Install dependencies:
|
|
@@ -53,7 +53,7 @@ The application follows a modular RAG pipeline:
|
|
| 53 |
streamlit run app/streamlit_app.py
|
| 54 |
```
|
| 55 |
|
| 56 |
-
2. Open your browser to the provided URL
|
| 57 |
|
| 58 |
3. In the sidebar:
|
| 59 |
- Upload one or more PDF files.
|
|
@@ -65,8 +65,8 @@ The application follows a modular RAG pipeline:
|
|
| 65 |
|
| 66 |
### Example
|
| 67 |
- Upload a PDF about machine learning.
|
| 68 |
-
- Ask
|
| 69 |
-
- Receive
|
| 70 |
|
| 71 |
## Configuration
|
| 72 |
|
|
@@ -81,27 +81,6 @@ Run tests with pytest:
|
|
| 81 |
pytest tests/
|
| 82 |
```
|
| 83 |
|
| 84 |
-
Current tests cover vectorstore functionality. Expand as needed.
|
| 85 |
-
|
| 86 |
-
## Contributing
|
| 87 |
-
|
| 88 |
-
1. Fork the repository.
|
| 89 |
-
2. Create a feature branch: `git checkout -b feature-name`.
|
| 90 |
-
3. Make changes and add tests.
|
| 91 |
-
4. Run linting: `ruff check .` (if configured).
|
| 92 |
-
5. Commit and push: `git push origin feature-name`.
|
| 93 |
-
6. Open a pull request.
|
| 94 |
-
|
| 95 |
-
### Code Standards
|
| 96 |
-
- Use type hints where possible.
|
| 97 |
-
- Follow PEP 8 style.
|
| 98 |
-
- Add docstrings to functions.
|
| 99 |
-
- Ensure tests pass before submitting.
|
| 100 |
-
|
| 101 |
-
## License
|
| 102 |
-
|
| 103 |
-
[MIT License](LICENSE) - Feel free to use and modify.
|
| 104 |
-
|
| 105 |
## Acknowledgments
|
| 106 |
|
| 107 |
- Built with [Streamlit](https://streamlit.io/), [Sentence Transformers](https://www.sbert.net/), [FAISS](https://github.com/facebookresearch/faiss), and [Transformers](https://huggingface.co/docs/transformers/index).
|
|
|
|
| 31 |
### Setup
|
| 32 |
1. Clone the repository:
|
| 33 |
```bash
|
| 34 |
+
git clone https://github.com/lydiamavin/rag-chatbot.git
|
| 35 |
cd rag-chatbot
|
| 36 |
```
|
| 37 |
|
| 38 |
2. Create and activate a virtual environment:
|
| 39 |
```bash
|
| 40 |
python -m venv venv
|
| 41 |
+
source venv/bin/activate
|
| 42 |
```
|
| 43 |
|
| 44 |
3. Install dependencies:
|
|
|
|
| 53 |
streamlit run app/streamlit_app.py
|
| 54 |
```
|
| 55 |
|
| 56 |
+
2. Open your browser to the provided URL.
|
| 57 |
|
| 58 |
3. In the sidebar:
|
| 59 |
- Upload one or more PDF files.
|
|
|
|
| 65 |
|
| 66 |
### Example
|
| 67 |
- Upload a PDF about machine learning.
|
| 68 |
+
- Ask Questions
|
| 69 |
+
- Receive answers with relevant excerpts from the document.
|
| 70 |
|
| 71 |
## Configuration
|
| 72 |
|
|
|
|
| 81 |
pytest tests/
|
| 82 |
```
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
## Acknowledgments
|
| 85 |
|
| 86 |
- Built with [Streamlit](https://streamlit.io/), [Sentence Transformers](https://www.sbert.net/), [FAISS](https://github.com/facebookresearch/faiss), and [Transformers](https://huggingface.co/docs/transformers/index).
|