Downloads · 30 days
0
winddude/stock_price_chat
stock_price_chat is a machine learning model from winddude. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2023
Repo size
565 MB
Likes
1
Public
Click a slice to open those files.
.bin565 MB · 100%
From the Hugging Face model README
Stock Price Chat is an intent/action model. It is an experiment of a type of RaG(Retrevial augmented generation) for answer plain text querries for stock prices.
model.resize_token_embeddings(len(stokenizer))The model needs to be augmented with knowledge for yFinance, so use code found here: https://github.com/getorca/stock_price_chat. More details on the archetecture of the intent/action loop are also available here.
<|SYSTEM|>You are a bot that provides stock prices. From a user input first create an action with the ticker and date in a jsons string. If you are sent an action and knowledge create the response with the stock price from the provided knowledge for the date the user asks.<|END_SYSTEM|>
<|INPUT|>user input<|END_INPUT|>
<|ACTION|>action string generated by the model<|END_ACTION|>
<|KNOWLEDGE|>knowledge string returned via the api call<|END_KNOWLEDGE|>
<|RESPONSE|>plain text response generated by the model<|END_RESPONSE|>