-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e328158
commit aa4d5c5
Showing
7 changed files
with
2,223 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import weave | ||
from dotenv import load_dotenv | ||
|
||
from finance_multi_modal_rag.llm_wrapper import MultiModalPredictor | ||
from finance_multi_modal_rag.response_generation import FinanceQABot | ||
from finance_multi_modal_rag.retrieval import BGERetriever | ||
|
||
load_dotenv() | ||
|
||
weave.init(project_name="finance_multi_modal_rag") | ||
retriever = BGERetriever.from_wandb_artifact( | ||
artifact_address="geekyrakshit/finance_multi_modal_rag/tsla-index:latest", | ||
weave_chunked_dataset_address="TSLA_sec_filings_chunks:v1", | ||
model_name="BAAI/bge-small-en-v1.5", | ||
) | ||
finace_qa_bot = FinanceQABot( | ||
predictor=MultiModalPredictor( | ||
model_name="meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo", | ||
base_url="http://195.242.25.198:8032/v1", | ||
), | ||
retriever=retriever, | ||
weave_corpus_dataset_address="TSLA_sec_filings:v8", | ||
) | ||
finace_qa_bot.predict(query="what did elon say in the tweets that tesla reported?") |
Oops, something went wrong.