Here’s a README.md for your Baseball Wiki project with installation instructions:
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`pip install -r requirements.txtMake sure you have the Google Cloud credentials set:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/google-credentials.json"Or include directly in app.py
Line 38 in eadac40
- Ensure you have FAISS installed by following the official instructions from FAISS documentation.
- Set up LangChain:
pip install langchain langchain-googlepython app.pyThe Flask server should now be running locally. Open your browser and go to http://127.0.0.1:5000 to interact with the app.
- Go to the Baseball Wiki app.
- Click on a player card and then click "Chat with Bot".
- Ask questions like: "What is Shohei Ohtani’s batting average?" and the chatbot will respond with relevant player data.
Feel free to fork the repository, make improvements, and create pull requests. If you have any suggestions or find bugs, please open an issue.
This project is licensed under the MIT License - see the MIT LICENSE file for details.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.