You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple CLI implemenation of a docs specific AI assistant. This project guides you to build an AI assistant for the Chainstack documentation using LangChain and Activeloop.
4
+
5
+
Read the article for an in depth guide:
6
+
7
+
-[]()
4
8
5
9
## Requirements
6
10
7
11
Before getting started, ensure you have the following:
8
12
9
-
*[Python](https://www.python.org/downloads/) - Version 3.7 or newer is required.
10
-
* An active account on OpenAI, along with an [OpenAI API key](https://platform.openai.com/account/api-keys).
11
-
* A Deep Lake account, complete with a [Deep Lake API key](https://app.activeloop.ai/?utm_source=referral&utm_medium=platform&utm_campaign=signup_promo_settings&utm_id=plg).
13
+
-[Python](https://www.python.org/downloads/) - Version 3.7 or newer is required.
14
+
- An active account on OpenAI, along with an [OpenAI API key](https://platform.openai.com/account/api-keys).
15
+
- An Activeloop account, complete with a [Activeloop API key](https://app.activeloop.ai/?utm_source=referral&utm_medium=platform&utm_campaign=signup_promo_settings&utm_id=plg).
12
16
13
17
## Project structure
14
18
15
-
*`docs-chat` directory is a Python virtual environment
16
-
*`main.py` scrapes pages and creates vector database.
17
-
*`chat.py` accepts users queries.
19
+
-`.env` stores secrets and configuration as environment variables.
20
+
-`main.py` scrapes pages and creates vector database.
Sample interaction using the GPT3.5-turbo model. Use GPT4 for better responses.
70
82
71
83
```
72
-
Please enter your question (or 'quit' to stop): what are chainstack core pillars?
84
+
Please enter your question (or 'quit' to stop): What are Chainstack core pillars?
85
+
Chainstack's core pillars are:
86
+
87
+
1. Unbeatable pricing: Chainstack offers competitive pricing options for its services. You can check their pricing options and use the pricing calculator on their website or contact them for more information.
88
+
89
+
2. Unbounded performance: Chainstack does not impose rate limiting or hard caps on its services. This means that you can enjoy high-performance and scalability without any restrictions.
90
+
91
+
3. Unlimited flexibility: Chainstack provides unlimited flexibility to its users. You can customize your node settings, such as the txpool.pricebump, and access additional node resources. They also offer load balancing and other customization options to meet your specific needs.
Please enter your question (or 'quit' to stop): How can I start using the Ethereum API with Chainstack?
98
+
To start using the Ethereum API with Chainstack, you can follow these steps:
73
99
74
-
Question: what are chainstack core pillars?
75
-
Answer: Chainstack's core pillars are unbeatable pricing, unbounded performance, and unlimited flexibility.
100
+
1. Sign up with Chainstack: Visit the Chainstack website and sign up for an account.
76
101
77
-
Tokens Used: 1178
78
-
Prompt Tokens: 1160
79
-
Completion Tokens: 18
80
-
Successful Requests: 1
81
-
Total Cost (USD): $0.002356
102
+
2. Deploy a node: Once you have signed up, deploy an Ethereum node on Chainstack. You can choose the network you want to deploy (such as the Ethereum Sepolia testnet) and configure the node according to your needs.
82
103
83
-
Please enter your question (or 'quit' to stop): how can i start using the Ethereum API with chainstack?
104
+
3. View node access and credentials: After deploying the node, you will be able to view the access details and credentials for your node. This includes the RPC URL, which you will need to connect to the network.
84
105
85
-
Question: how can i start using the Ethereum API with chainstack?
86
-
Answer: To use the Ethereum API with Chainstack, you need to follow these steps:
106
+
4. Connect to the network: Use the RPC URL provided by Chainstack to connect to the Ethereum network. You can use libraries like web3.js to interact with the network and perform various operations such as reading the latest block number or sending transactions.
107
+
108
+
By following these steps, you will be able to start using the Ethereum API with Chainstack and interact with the Ethereum network.
0 commit comments