Joshua Sundance Bailey
commited on
Commit
β’
b7bd5f0
1
Parent(s):
d5a80d3
readme
Browse files
README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: π
|
4 |
colorFrom: green
|
5 |
colorTo: blue
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.28.2
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: mit
|
11 |
---
|
12 |
|
@@ -15,9 +15,56 @@ license: mit
|
|
15 |
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
16 |
[![python](https://img.shields.io/badge/Python-3.11-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
|
17 |
|
|
|
|
|
|
|
18 |
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
|
19 |
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
|
20 |
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
|
21 |
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
|
22 |
|
23 |
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: govgis_nov2023-slim-faiss
|
3 |
emoji: π
|
4 |
colorFrom: green
|
5 |
colorTo: blue
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.28.2
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
license: mit
|
11 |
---
|
12 |
|
|
|
15 |
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
16 |
[![python](https://img.shields.io/badge/Python-3.11-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
|
17 |
|
18 |
+
[![Push to HuggingFace Space](https://github.com/joshuasundance-swca/govgis_nov2023-slim-faiss/actions/workflows/hf-space.yml/badge.svg)](https://github.com/joshuasundance-swca/govgis_nov2023-slim-faiss/actions/workflows/hf-space.yml)
|
19 |
+
[![Open HuggingFace Space](https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg)](https://huggingface.co/spaces/joshuasundance/govgis_nov2023-slim-faiss)
|
20 |
+
|
21 |
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
|
22 |
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
|
23 |
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
|
24 |
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
|
25 |
|
26 |
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
|
27 |
+
|
28 |
+
|
29 |
+
# govgis_nov2023-slim-faiss
|
30 |
+
|
31 |
+
π€ This README was written by GPT-4. π€
|
32 |
+
|
33 |
+
## Features
|
34 |
+
|
35 |
+
- **Semantic Search on GIS Metadata**: Leverages the `govgis_nov2023` dataset to provide detailed insights into numerous GIS servers and layers.
|
36 |
+
- **Natural Language Query Processing**: Uses Claude-Instant and Claude-2.1 models to interpret and rephrase user queries (optional).
|
37 |
+
- **Advanced Document Retrieval**: Integrates FAISS vector store for efficient and relevant document retrieval based on query semantics.
|
38 |
+
- **Customizable User Experience**: Sidebar controls to adjust search parameters and input fields for queries.
|
39 |
+
|
40 |
+
## Dataset Overview
|
41 |
+
|
42 |
+
- **Content**: The app is built around the `govgis_nov2023` dataset, which documents metadata from 1684 government ArcGIS servers, detailing almost a million individual layers.
|
43 |
+
- **Unique Snapshot**: Provides a unique snapshot of these servers, with metadata including field information for feature layers and cell size for raster layers.
|
44 |
+
|
45 |
+
## User Interface Guide
|
46 |
+
|
47 |
+
- Adjust search settings like result limits and response generation parameters in the sidebar.
|
48 |
+
- Securely enter your Anthropic API key for model access.
|
49 |
+
- Submit natural language queries related to GIS data.
|
50 |
+
|
51 |
+
## Contributions
|
52 |
+
|
53 |
+
We welcome contributions. Please follow the standard fork and pull request process.
|
54 |
+
|
55 |
+
## Support and Contact
|
56 |
+
|
57 |
+
For support, please raise an issue on GitHub or in the HuggingFace space.
|
58 |
+
|
59 |
+
## License
|
60 |
+
|
61 |
+
This project is under the [MIT License](LICENSE.md).
|
62 |
+
|
63 |
+
## Acknowledgments
|
64 |
+
|
65 |
+
Thanks to the Huggingface and Streamlit communities, and special acknowledgment to Joseph Elfelt and the creators of the `restgdf` library for their contributions to the GIS field.
|
66 |
+
|
67 |
+
|
68 |
+
## TODO
|
69 |
+
- [ ] Add an open source model like `HuggingFaceH4/zephyr-7b-beta`
|
70 |
+
-
|