Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arshitarora/custom-alchemy

A custom chatgpt for blockchain, also extracts live currency rates from Coin Layer API
https://github.com/arshitarora/custom-alchemy

bitcoin blockchain machine-learning openai python

Last synced: 24 days ago
JSON representation

A custom chatgpt for blockchain, also extracts live currency rates from Coin Layer API

Awesome Lists containing this project

README

        

# 5ire Assistant - GitHub README πŸ‘‹πŸ’ΌπŸ€–

This repository contains code for a conversational assistant powered by Langchain components and the Coin Layer API. The assistant can answer questions and provide cryptocurrency exchange rates.

## Features πŸš€

- **Question Answering:** The assistant utilizes Langchain's components for question answering. It retrieves relevant information from a directory of text documents using embeddings and a retrieval-based approach.

- **Cryptocurrency Exchange Rates:** The assistant can also provide real-time exchange rates for cryptocurrencies using the Coin Layer API.

- **User Interface:** The assistant comes with a user-friendly interface built using Gradio. It allows users to input their queries and specify a cryptocurrency code to get relevant information.

## Setup βš™οΈ

1. Clone this repository to your local machine:

```bash
git clone https://github.com/yourusername/5ire-assistant.git
cd 5ire-assistant

2. Obtain your Coin Layer API key and OpenAI API key. Replace YOUR_COIN_LAYER_API_KEY and YOUR_OPENAI_API_KEY in the code with your actual keys.
3. Set up your document directory: Place your text documents in the specified directory (/path/to/your/documents) for Langchain to work with.
4. Run the program:

Copy code
`python3 main.py`
Access the assistant through your web browser at http://localhost:7860.

Usage πŸ“

Enter your question in the text input field.
Optionally, enter a cryptocurrency code (e.g., BTC) to get its exchange rate.
Click the "Submit" button to get your answer or exchange rate information.
Contributions πŸ™Œ

Contributions are welcome! If you encounter any issues, have suggestions for improvements, or want to add new features, feel free to submit a pull request.

Screenshot 2023-08-28 at 4 54 00 PM
Screenshot 2023-08-28 at 4 54 20 PM
Screenshot 2023-08-28 at 4 54 35 PM