Sravz LLC
Sravz LLC
  • 94
  • 78 871
Python-LLM - Session 4 - LangChain - Multi Agent - Supervisor - Agent - Query Mutual Funds Data
# Use Case
Use LangChain Multi Agent: Supervisor Agent (JSON & Pandas Agents) to Query Mutual Funds Data
## Session 4
- LangSmith - debug LangGraph.
- Relevant document search update - make the documents more relevant.
- Add code = filename to all the objects recursively
- Integrate AWS S3 with JSONSplitter.
- In JSON Agent remove tools not used by the graph, this will prevent looping
- Remove pandas agent and use Python REPL agent.
- LangChain pandas agent hard codes a data frame and forwards to python repl agent, instead of that just provide the python repl agent.
- Sample Queries
Documentation Link: docs.sravz.com/docs/tech/python/langchain/#session-4
Source Code: gist.github.com/sravzpublic/534dbb3695180a5deca4df6cd0c118f4
Video Explanation: th-cam.com/video/oJ0lk6cdxos/w-d-xo.html
Sravz LLC Training Series:
Analytics - docs.sravz.com/docs/analytics/
Tech - docs.sravz.com/docs/tech/
#cpp #c++ #cors #boost #beast #http #cmake #make #python #langchain #openai #llm
มุมมอง: 78

วีดีโอ

Python-LLM - Session 3 - LangChain - Multi Agent - Supervisor - Agent - Query Mutual Funds Data
มุมมอง 524หลายเดือนก่อน
# Use Case Use LangChain Multi Agent: Supervisor Agent (JSON & Pandas Agents) to Query Mutual Funds Data Session 3 - LangChain - Multi Agent - Retrieval Augmented Generation - JSON Agent and Pandas Agent Integration - Supervisor - Agent set up - Sample Queries Documentation Link: docs.sravz.com/docs/tech/python/langchain/#session-3 Source Code: gist.github.com/sravzpublic/80ce4e6ad8168e9271195a...
C++ Boost Beast Rest API - Session 1 - Boost JSON - Models output as JSON
มุมมอง 732 หลายเดือนก่อน
# Use Case Use Boost JSON to generate JSON to be sent as JSON REST API output Session 1 - Demo the production setup. - Fundamentals Controller and Presigned URLs Model Integraton. - Updates to Router. - C Concepts Used: - Multiple Interitance. - Pure Virtual functions/Abstact Classes. - Usage of Override keyword. - Contravariance: [No parameter contra variance](stackoverflow.com/questions/29959...
C++ AWS S3 - Session 2 - Boost ASIO Rest Client, Spawn, Future & Promise
มุมมอง 632 หลายเดือนก่อน
Session 2 * DataProvider setup and architecture discussion. * Boost ASIO Spawn. * std::future - future and promise. * Possible deadlock. * Boost ASIO: Rest Client - Perform GET Call. * Discuss the unit test and integration test setup. Documentation Link: docs.sravz.com/docs/tech/cpp/fundamentals-controller/#session-2 Source Code: gist.github.com/sravzpublic/ba81df2a6ec1d520f4a7b0b9d8a543da Vide...
C++ AWS S3 - Cache PreSignedUrls from S3 in Redis Cache
มุมมอง 272 หลายเดือนก่อน
# Use Case Use AWS S3 to store data and generate presigned URLs. Use Redis to store the presigned URLs for quick lookups. Session 1 - Demo the unit test. - Fundamentals Controller setup. - Redis Service - Client setup and redis get/set commands. - AWS S3 Client - Generate Presigned URL logic. - Use redis to cache the presigned URLs. Documentation Link: docs.sravz.com/docs/tech/cpp/fundamentals-...
Sravz LLC Tech Series: Programming Training Videos - Financial Application.
มุมมอง 3853 หลายเดือนก่อน
Sravz LLC Analytics & Tech Series: Are you seeking to revolutionize your financial trading experience? Would you like to develop a cutting edge trading application using the most powerful programming languages? Whether it is C , Rust, GoLang, Python, NodeJS or TypeScript: rest assured, we got you covered. For detailed insights into building your platform, do not forget to checkout our comprehen...
C++ CMake - Migrate Makefile to CMake - CMake introduction
มุมมอง 713 หลายเดือนก่อน
# Use Case Convert Makefile based build system to CMake. Session 1 - Discuss existing Makefile command. - Use the Makefile command to convert the build system to use CMake. - Discuss integration with the GTest Framework - Show the build using CMake Extension - Run tests using Testing Framework Extension Documentation Link: docs.sravz.com/docs/tech/cpp/cmake/ Source Code: gist.github.com/sravzpu...
Python-Airflow - Mutual Funds Fundamentals Uploader Dag
มุมมอง 493 หลายเดือนก่อน
Use Case Use this program to upload mutual funds fundamentals data to AWS S3. Airflow Dag submits tickers to Airflow Celery workers using Task/Task Group Mapping. Task groups/tasks perform http get from the service provider and upload the data to AWS S3. Documentation Link: docs.sravz.com/docs/tech/airflow-dask/mutual-fund-fundamentals-uploader/ Code: gist.github.com/sravzpublic/0ec6ed086d849c5...
Python-LLM - Session 2 - LangChain - Cost Improvement - Vector embeddings - ChromaDB
มุมมอง 923 หลายเดือนก่อน
Use Case Use LangChain to Create Q&A Application on Sravz Financial Data Session 2 - Query cost improvements by using vector embeddings and similarity search - RecursiveJsonSplitter to split large JSON file - Use HuggingFace all-MiniLM-L6-v2 to create vector embeddings - Use ChromaDB to store and query vector embeddings - Extend JSONToolKit used by JSON Agent - Perform sample queries and analyz...
Python - Use LangChain to Create Q&A Application on Sravz Financial Data
มุมมอง 5413 หลายเดือนก่อน
Session 1 * Overview of the architecture * High-level description of LangChain - Loaders, Tool, Agent, LLM * Perform sample queries Documentation Link: docs.sravz.com/docs/tech/python/langchain/ Code: gist.github.com/sravzpublic/636a989f933f7b53dcf5935e780fd9f4 Video Explanation: th-cam.com/video/nLtlJwWYlYk/w-d-xo.html Sravz LLC Analytics & Tech Series: Documentation - Source code: Analytics: ...
Python-LLM - Vector Embeddings - Q&A Application with Financial Data
มุมมอง 1164 หลายเดือนก่อน
Use Case Use OpenAI to Create Q&A Application on Sravz Financial Data Session 1 * Overview of the architecture * Describe vector embeddings * Create OpenAI embedding for sample mutual funds * Perform sample queries Documentation Link: docs.sravz.com/docs/tech/python/openai/#video-explanation-of-the-code Code: gist.github.com/sravzpublic/1eb9abcfd0c3c8de5887c232c3f9afc0 Video Explanation: th-cam...
Analytics - Nasdaq 100 Leveraged Funds Analysis - QQQ QLD TQQ
มุมมอง 674 หลายเดือนก่อน
Use Case Perform Analysis of Leveraged Funds: - Create a portfolio of leveraged Funds - For Eg: QQQ, QLD and TQQQ - Review the returns and performance metrics of the equal value-weighted portfolio Leveraged Funds - Return Analysis - Adjusted Close Price - Daily Returns - Cumulative Returns - Daily Return Factor - Cumulative Beta Slippage - 30 Days Rolling Volatility - Daily Summary Statistics -...
Rust - Historical Ticker Plant - Session 5 - Config Toml - Error Handling - Match Pattern
มุมมอง 354 หลายเดือนก่อน
Session 5 * Demo: * Angular UI sends a message to the backend-node over socket.io websockets * Backend-node server receives the message on the socket.io websocket * Backed-node sends the message to NSQ Server on the backend-rust topic * Backend-rust receives the message on the NSQ Server backend-rust topic * Backend-rust process the message * Backend-rust send the response to NSQ Server on the ...
Rust - Historical Ticker Plant - Session 4 - AppConfig
มุมมอง 135 หลายเดือนก่อน
Session 4 * Config struct to parse the environment variables * Ticker plant sends the output on the NSQ backend-node topic Documentation Link: docs.sravz.com/docs/tech/ticker-plant/historical/#session-4 Code: gist.github.com/sravzpublic/aa4ccc83eb534578037ffb2e2b8e5133 Video Explanation: th-cam.com/video/dfQ0TT6nj70/w-d-xo.html Sravz LLC Analytics & Tech Series: Documentation - Source code: Ana...
Airflow - US ETF Tickers Uploader
มุมมอง 265 หลายเดือนก่อน
Airflow - US ETF Tickers Uploader Use this program to get list of US ETF tickers. Session 1 * Get a list of ETF symbols from a data provider * Upload the ETF symbols to MongoDB Documentation Link: docs.sravz.com/docs/tech/airflow-dask/etf-tickers-uploader/ Code: gist.github.com/sravzpublic/365aec0f11133cd21bc01b723027d6fb Video Explanation: th-cam.com/video/8i0FJsHpBWk/w-d-xo.html Sravz LLC Ana...
Rust - Historical Ticker Plant - Session 3 - Py03 - Rust Python integration
มุมมอง 735 หลายเดือนก่อน
Rust - Historical Ticker Plant - Session 3 - Py03 - Rust Python integration
Rust - Historical Ticker Plant - Session 2 - Main Module/Router/Service
มุมมอง 426 หลายเดือนก่อน
Rust - Historical Ticker Plant - Session 2 - Main Module/Router/Service
Airflow/Python - Get List of USA ETF Tickers - Upload historical quotes to S3
มุมมอง 546 หลายเดือนก่อน
Airflow/Python - Get List of USA ETF Tickers - Upload historical quotes to S3
Angular - Update Angular App with Infragistics UI components from V15 -V16
มุมมอง 666 หลายเดือนก่อน
Angular - Update Angular App with Infragistics UI components from V15 -V16
Rust - Historical Ticker Plant - NSQ Reader/Writer
มุมมอง 728 หลายเดือนก่อน
Rust - Historical Ticker Plant - NSQ Reader/Writer
Interactive Brokers - IBKR - Python API - Market Scanner - Top US Futures by volume (USD)
มุมมอง 2038 หลายเดือนก่อน
Interactive Brokers - IBKR - Python API - Market Scanner - Top US Futures by volume (USD)
Interactive Brokers - IBKR - Python API - Advanced Orders - Bracket-Combo-Order
มุมมอง 3839 หลายเดือนก่อน
Interactive Brokers - IBKR - Python API - Advanced Orders - Bracket-Combo-Order
Interactive Brokers - IBKR - Python API - Order Create/Update/Query/Cancel
มุมมอง 1649 หลายเดือนก่อน
Interactive Brokers - IBKR - Python API - Order Create/Update/Query/Cancel
Interactive Brokers - IBKR - Python API - Asset (Stock/Future/Option) Lookup
มุมมอง 809 หลายเดือนก่อน
Interactive Brokers - IBKR - Python API - Asset (Stock/Future/Option) Lookup
Golang - Ticker Plant - WebSockets Redis - Store quotes in Redis Timeseries
มุมมอง 1149 หลายเดือนก่อน
Golang - Ticker Plant - WebSockets Redis - Store quotes in Redis Timeseries
Back Testing - Pyfolio - back test portfolio and asset returns
มุมมอง 1409 หลายเดือนก่อน
Back Testing - Pyfolio - back test portfolio and asset returns
Redis - Timeseries - Ticker Plant introduction
มุมมอง 2479 หลายเดือนก่อน
Redis - Timeseries - Ticker Plant introduction
Golang - Crash Course Session 5 - Go Context Package
มุมมอง 1269 หลายเดือนก่อน
Golang - Crash Course Session 5 - Go Context Package
Stocks - Prophet Model Analysis - Estimate the future asset value - Forecast/Prediction
มุมมอง 589 หลายเดือนก่อน
Stocks - Prophet Model Analysis - Estimate the future asset value - Forecast/Prediction
Portfolios - Principal Component Analysis - Reduce number of Assets based on risk contribution
มุมมอง 32110 หลายเดือนก่อน
Portfolios - Principal Component Analysis - Reduce number of Assets based on risk contribution

ความคิดเห็น

  • @JeomonGeorge
    @JeomonGeorge หลายเดือนก่อน

    Can you do this on Ollama or Groq inference engines plz?

    • @sravzllc
      @sravzllc หลายเดือนก่อน

      Hi @JeomonGeroge, thanks for your comments. I have to check for an hosted llama/groq provider with OpenAI API compatible service so I can point the langchain code to llama/groq. If you are interested in llamacpp implementation here is a sample: github.com/sravzpublic/ragai/blob/main/src/llama2.py#L74 The sample switches the LLM between chat gpt and llamacpp. github.com/ggerganov/llama.cpp

    • @JeomonGeorge
      @JeomonGeorge หลายเดือนก่อน

      @@sravzllc I have made the multi agent hierarchial langraph with groq which is similar to yours but it keep on looping it's not going to Finish

    • @sravzllc
      @sravzllc หลายเดือนก่อน

      @@JeomonGeorge Yes, I'm facing the same issue too, that is holding me from deploying this to Prod. Have you tried to connect the code with langsmith and check the graph: smith.langchain.com/. I noticed this issue: When the supervisor asks the LLM (ChatGPT) which agent next or FInish, ChatGPT seems to give incorrect agent name. So it ends up looping. I'm planning to check the code and see if there is a callback which can be called after an agent + tool run and the supervisor begins the call to LLM for next/FINISH. In that call back (if there is one), update the user message such that when the supervisor asks LLM for the next/FINISH the prompt is updated to just what work is left (do not send the complete initial prompt. I'll investigate further and let you know, in case you find some solution please let me know?

    • @sravzllc
      @sravzllc หลายเดือนก่อน

      Hi @JeomonGeorge, I updated the system prompt for the supervisor to include description of each agent. Earlier we listed just the agent names, now I added agent descriptions: gist.github.com/sravzpublic/80ce4e6ad8168e9271195a1a5a433c09/revisions#diff-e45c715fe36cbe44080f21c4acf60588992492e52799d94a83bd9f588c77f31aR50. members_description = ["json_agent can handle json input and creates an updated json output", "python_repl_agent can run safe python code"] I also update the user prompt to make it more clear: run_workflow(QueryData(key = "Top_Holdings", query=f"""Using the json_agent get the json key Top_Holdings for the given JSONs then get the top 5 holdings complete JSON object with name, weights etc for each JSON, then flatten the list of list of JSON objects into a single list called flattned_list. Generate safe python code to load the flattned_list to pandas dataframe and save the dataframe to a html file at {output_file_name}. Run the generated python code so the output file {output_file_name} is created""")) In my last 10 tries I did not see a loop. Please check if this works for you and let me know your thoughts?

  • @philippvolkmer2843
    @philippvolkmer2843 2 หลายเดือนก่อน

    How can i install the driver for c++. Never understood

    • @sravzllc
      @sravzllc 2 หลายเดือนก่อน

      Hello, we will create another tutorial for that: Below is the docker command: # installing mongocxx driver - connects c++ to mongo RUN cd /usr/src \ && wget github.com/mongodb/mongo-cxx-driver/releases/download/r3.7.1/mongo-cxx-driver-r3.7.1.tar.gz \ && tar -xzf mongo-cxx-driver-r3.7.1.tar.gz \ && cd mongo-cxx-driver-r3.7.1/build \ && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. -DCMAKE_CXX_STANDARD=17 -DBSONCXX_POLY_USE_SYSTEM_MNMLSTC=0 -DBSONCXX_POLY_USE_MNMLSTC=0 \ && make \ && make install Here is the build command which include mongo headers and libs: sravz: $(INCLUDE_DIR) $(WEB_INCLUDES) $(INCLUDE_SERVICES_DIR) $(SRC_FILES) $(WEB_SOURCES) $(SERVICES_SOURCES) $(ROUTER_SOURCES) \ $(CONTROLLER_SOURCES) ./src/util.cpp ./include/util.hpp /usr/lib/ccache/g++ -pipe --std=c++17 -Wno-deprecated-declarations -DBOOST_LOG_DYN_LINK \ -I$(REDIS_PLUS_PLUS_MODULES_DIR) \ -I$(INCLUDE_DIR) \ -I$(INCLUDE_SERVICES_DIR) \ -I$(INCLUDE_CONTROLLERS_DIR) \ -I$(INCLUDE_ROUTER_DIR) \ -I/usr/local/include/mongocxx/v_noabi \ -I/usr/local/include/bsoncxx/v_noabi \ -I/usr/local/include/aws/include \ -L/usr/local/lib/ \ -o ./dist/backend-cpp \ $(SRC_FILES) $(WEB_SOURCES) $(SERVICES_SOURCES) $(ROUTER_SOURCES) $(CONTROLLER_SOURCES) \ -lhiredis -lhiredis_ssl -lhiredis_ssl -lredis++ -lpthread -lboost_thread -lboost_program_options \ -lcrypto -lssl -lboost_json -lboost_url -lboost_log -lmongocxx -lbsoncxx \ -lboost_filesystem -lboost_system -lboost_date_time -lboost_regex \ -lboost_log_setup -laws-cpp-sdk-core -laws-cpp-sdk-s3 We will create another video which will use CMAKE to install mongo dependencies. In this video I explained above Make command conversion to CMake: th-cam.com/video/Um_blxn7-4o/w-d-xo.html at a later point I'll update the CMake to install the dependencies.

  • @sravzllc
    @sravzllc 5 หลายเดือนก่อน

    Thanks for the clear explanation

  • @sampatp3598
    @sampatp3598 6 หลายเดือนก่อน

    Great presentation

  • @rajendranselvaraj4434
    @rajendranselvaraj4434 8 หลายเดือนก่อน

    Very nice informative Sravana. Thank you for sharing the video and code All the best to your channel and the project you are developing

    • @sravzllc
      @sravzllc 8 หลายเดือนก่อน

      Hi @rajendranselvaraj4434, Thanks for the kind words. Glad you found the videos helpful, if you have any request on the related topic, please let us know here, we'll try to create a video around that request.

  • @fun2096
    @fun2096 9 หลายเดือนก่อน

    Hey bro can we get in contact

    • @sampatp3598
      @sampatp3598 9 หลายเดือนก่อน

      Please post your questions here so the community can benefit

    • @fun2096
      @fun2096 9 หลายเดือนก่อน

      @@sampatp3598oh ok you know his discord link or telegram?

  • @julianmarq1972
    @julianmarq1972 9 หลายเดือนก่อน

    ✅ Promo-SM

  • @lalitsharma9002
    @lalitsharma9002 11 หลายเดือนก่อน

    Hi.. Nice video Can you create a video that how we can publish data on azure pubsub as well.

  • @shubangisaxena2322
    @shubangisaxena2322 11 หลายเดือนก่อน

    How do I pass my ceph access keys and secret keys? It's different from the contabo export

    • @sravzllc
      @sravzllc 11 หลายเดือนก่อน

      Hi @shubangisaxena2322 I don't have access to Ceph but per Ceph documentation: docs.ceph.com/en/quincy/radosgw/s3/python/ conn = boto.connect_s3( aws_access_key_id = access_key, aws_secret_access_key = secret_key, host = 'objects.dreamhost.com', #is_secure=False, # uncomment if you are not using ssl calling_format = boto.s3.connection.OrdinaryCallingFormat(), ) Please export below two values with your Ceph values // export AWS_ACCESS_KEY_ID=XXX // export AWS_SECRET_ACCESS_KEY=XXX Updated host at this line: clientConfig.endpointOverride = Aws::String("usc1.contabostorage.com"); to your Ceph host and give it a try.

  • @Argabeni
    @Argabeni ปีที่แล้ว

    Your channel is great, I subscribed. Try to promote channel via g e t 4 v i e w s - official advertising, without any cheating. Thanks for video.