https://github.com/thawkin3/pinecone-demo
This app is built using Python, Flask, and Pinecone. It performs a similarity search using the Pinecone SDK to find similar questions from a dataset.
https://github.com/thawkin3/pinecone-demo
flask flask-application machine-learning natural-language-processing pinecone python
Last synced: 2 months ago
JSON representation
This app is built using Python, Flask, and Pinecone. It performs a similarity search using the Pinecone SDK to find similar questions from a dataset.
- Host: GitHub
- URL: https://github.com/thawkin3/pinecone-demo
- Owner: thawkin3
- Created: 2021-06-25T19:58:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T01:49:00.000Z (about 4 years ago)
- Last Synced: 2025-04-14T01:37:18.670Z (6 months ago)
- Topics: flask, flask-application, machine-learning, natural-language-processing, pinecone, python
- Language: Python
- Homepage:
- Size: 2.66 MB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pinecone Demo - Customer Service Chat Bot
This app is built using Python 3.9+, Flask 2.0+, and Pinecone. It performs a similarity search using the Pinecone SDK to find similar questions from a dataset.

## Running the app locally
Begin by cloning this git repo and navigating to the project directory.
Next, create a virtual environment and activate it:
```
python -m venv venv
. venv/bin/activate
```Install dependencies by running:
```
python -m pip install -r requirements.txt
```Create an `.env` file and add your Pinecone API key:
```
PINECONE_API_KEY=your-key-here
```Finally, to run the app on your machine, simply run this command from the terminal:
```
flask run
```Or, to run the app in debug mode, add the `FLASK_ENV=development` environment variable before the command:
```
FLASK_ENV=development flask run
```The app should now be running on http://127.0.0.1:5000 in your browser.
## Resources
Python, pyenv, and pip
- https://realpython.com/intro-to-pyenv/
- https://github.com/pyenv/pyenv
- https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#pyenv-shell
- https://pip.pypa.io/en/latest/user_guide/#requirements-files
- https://www.twilio.com/blog/environment-variables-pythonFlask
- https://flask.palletsprojects.com/en/2.0.x/installation/
- https://flask.palletsprojects.com/en/2.0.x/quickstart/
- https://flask.palletsprojects.com/en/2.0.x/tutorial/
- https://github.com/pallets/flask/tree/main/examples/tutorial
- https://flask.palletsprojects.com/en/2.0.x/api/#flask.RequestPinecone
- https://www.pinecone.io/docs/quickstart-python/
- https://www.pinecone.io/docs/examples/question-answering/
- https://docs.beta.pinecone.io/en/latest/python_client/manage.html