The Finance-Custom-Bot is a project that harnesses the power of language chains and vector embeddings to find the best similarity score for a given text input. It's particularly adept in the finance sector, significantly enhancing operations through accurate and efficient text matching.
-
Open API Key Setup 🔑:
- Before getting started, ensure your Open API key is set in the environment variable. This key is crucial for accessing various services and APIs used by the bot.
-
URL Content Matching 🌐:
- Easily find similarity matches of texts within URL content. Add the URLs to the designated section (separated by commas), adjust your search query, and the bot will generate the best matching result from the text.
-
Embedding Model 🤖:
- Utilizes a sentence transformer as the embedding model to create vector embeddings. These embeddings facilitate the discovery of the most similar texts.
-
FAISS Integration 📚:
- Leverages Facebook's FAISS library for efficient storage, retrieval, similarity search, and clustering of dense vectors.
-
OpenAI LLM Integration 🧠:
- Incorporates OpenAI's Language Model (LLM) to enhance text generation, enabling the bot to produce accurate and contextually relevant texts.
This project marks the beginning of my journey in the language chain field. Excited to explore more and implement advanced features in the future.
LinkedIn: Akash Prajapati
To set up the environment and update the Open API key, follow these steps:
-
Downloading Requirements:
- Run
pip install -r req.txt
to install all necessary dependencies.
- Run
-
Updating Open API Key:
-
Create a bash script (
update_api_key.sh
) with the following:#!/bin/bash export OPEN_API_KEY="YOUR_NEW_API_KEY"
-
Replace
YOUR_NEW_API_KEY
with the updated API key. -
Execute the script with
source update_api_key.sh
to update the Open API key in the environment variables.
-