virat Profile picture
Jun 18 2 tweets 2 min read Read on X
Our OSS financial agent now has a python backend.

I migrated the agent code to use the latest @LangChainAI gen ui framework

• set up langgraph
• set up langserve
• set up fastapi
• set up agent tools

Super excited about this project.

We'll have a true client + server app with a python backend and nextjs frontend.

Eventually, will launch this into production.

Since it is open source, you all can do the same!

Right now, we have 4 agent tools:
• get ticker news
• get ticker financials
• get ticker current price
• get ticker historical prices

Will set up the nextjs frontend next.

Fantastic work by @BraceSproul in the YT videos, which demystified everything.Image
Code:

Brace's video: github.com/virattt/financ…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with virat

virat Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @virattt

May 12, 2023
So, I'm learning how to build LLM-powered chat apps that are more production-ready, from scratch.

I've created an open-source repo that contains my ongoing explorations.

The stack:
• Django backend
• React frontend
@LangChainAI agents
• Websocket protocol

GitHub below. ImageImage
In my free time, my main focus will be to evolve this codebase.

Functionalities I want to add:
• Streaming LLM output
• Storage (e.g. vector db)
• More agent tools
• Short-term memory
• BabyAGI
• Plan-and-Execute agent
• More sophisticated UI
• Error handling

What else?
Here's the repo: github.com/virattt/chat_a…

I just created the codebase this week and there's a lot of (exciting!) work to do.

However, the core functionality of chatting with a @LangChainAI agent is implemented.

Fun fact: this is my first open source project 🙂🎢
Read 4 tweets
Apr 18, 2023
Alright, I finally understand @LangChainAI agents and tools.

I can now create a custom:
1. Tool that "reads" annual reports
2. Agent that answers queries via the tool

For my example, I am using $META's 2022 annual report.

Code is below. Happy learning 🙂
(1/3) About the custom Tool

Under the hood, the Annual Report tool is forwarding queries to a @LangChainAI chain.

This chain answers queries using:
@trychroma's Chroma DB
@OpenAI's GPT-3.5 Turbo model

I still don't have API access to GPT-4. Sigh.
(2/3) About the custom Agent

The agent is given a list of tools that it can use to answer queries.

For my example, I am just giving it the Annual Report tool.

However, you can create or add more tools as you see fit!
Read 4 tweets
Apr 7, 2023
I've seen multiple questions about how to build a Chatbot that:

• Retrieves data from PDFs and
• Has conversational memory

Turns out, it's really simple to do with @LangChainAI.

So, I wrote a quick tutorial with a real-world example for you all.

Code below.
1/4

Prompt: "What was Airbnb's net income in 2022?"

Response: "$1.9 billion"
2/4

Prompt: "What was it two years before that?"

Response: "Airbnb's net income in 2020 was -$4.6 billion."

Nice.

It figured out that I want to know what net income was two years before 2022.
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(