Get the latest updates on Generative AI in Healthcare click here
logo

Reference Material

Python with Typing and Pandas

Installation:

Install Anaconda:
https://www.anaconda.com/download

Note:
https://saturncloud.io/blog/solving-the-conda-command-not-found-issue-after-installing-anaconda3/

Install VS Code:
https://marketplace.visualstudio.com/items?itemName=ms-python.python

Install Python Plugin:
https://marketplace.visualstudio.com/items?itemName=ms-python.python

Read this Document for Reference:
https://python.plainenglish.io/typed-python-for-typescript-developers-791145e7171c

Commands to Upgrade to Latest Python 3.12 in Anaconda:

conda create --name myenv3_12 python=3.12
conda env list
conda activate myenv3_12
python --version

https://saturncloud.io/blog/activating-anaconda-environment-in-vscode-a-guide-for-data-scientists/

Learning Material:

  1. We will cover Python version 3.12+ with Type Hints
  2. Chapters 1-10 of Python Crash Course 3rd Edition
    https://www.amazon.com/Python-Crash-Course-Eric-Matthes/dp/1718502702/ref=sr_1_1
    Note: Update the Book Code with Type Hints
  3. Resources for Python Crash Course
    https://ehmatthes.github.io/pcc_3e/
  4. Google Colaboratory
    https://colab.google/
  5. How to Determine the Type of an Object in Python?
    https://itslinuxfoss.com/determine-type-object-python/
  6. Python end parameter in print()
    https://www.geeksforgeeks.org/gfact-50-python-end-parameter-in-print/
  7. Typing
    https://docs.python.org/3/library/typing.html
    https://www.javatpoint.com/type-hint-concepts-to-improve-python-code
    Note: The last article is not up to date because it is not using collections.abc
  8. Typing Cheat Sheet
    https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html
  9. Abstract Base Classes (collections.abc)
    https://www.youtube.com/watch?v=oUt1feRoyvI&ab_channel=mCoding
    https://docs.python.org/3/library/collections.abc.html
  10. Yield in Python:
    https://www.simplilearn.com/tutorials/python-tutorial/yield-in-python
    https://stackoverflow.com/questions/74774919/proper-typing-for-a-interesting-yield-function
    Example of type hint for a function returning yield i.e. generator function:
    #First Import:
    from collections.abc import Iterator
    #Then define the function that returns yield:
    def my_generator()-> Iterator[int]:
  11. Advanced Classes Topics in Python:
    Class Attributes and Methods vs Instance Attributes and Methods in Python
    https://www.tutorialsteacher.com/articles/class-attributes-vs-instance-attributes-in-python
    https://www.digitalocean.com/community/tutorials/python-static-method
    Public, Protected, Private Members
    https://www.tutorialsteacher.com/python/public-private-protected-modifiers
    https://www.linkedin.com/pulse/pythons-access-specifiers-public-protected-private-swarooprani-manoor/
    How To Use the str() and repr() Methods in Python
    https://digitalocean.com/community/tutorials/python-str-repr-functions
  12. . Duck Typing
    https://ioflood.com/blog/duck-typing/
  13. Type Statements
    https://docs.python.org/3.12/reference/simple_stmts.html#the-type-statement
  14. Chapter 5 of Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter 3rd Edition
    https://www.amazon.com/Python-Data-Analysis-Wrangling-Jupyter/dp/109810
  15. Additional Readings:
    https://towardsdatascience.com/python-type-hinting-duck-type-compatibility-and-consistent-with-72e8b348d8ac

Projects:

  1. Comprehensive Data Analysis with Pandas
    https://www.kaggle.com/code/prashant111/comprehensive-data-analysis-with-pandas
  2. Pandas Project: Make a Gradebook With Python & Pandas
    https://realpython.com/pandas-project-gradebook/

Fundamentals of Python with Typing and Panadas Quiz

Total Questions: 40
Duration: 60 minutes

Learn Langchain, Pinecone, and LLMs

  1. What is LangChain? Easier development around LLMs
    https://www.infoworld.com/article/3706289/what-is-langchain-easier-development-around-llms.html
  2. LangChain Crash Course for Beginners Video
    https://www.youtube.com/watch?v=lG7Uxts9SXs&ab_channel=freeCodeCamp.org
  3. LangChain for LLM Application Development
    https://www.deeplearning.ai/short-courses/langchain-for-llm-application-development/
  4. LangChain: Chat with Your Data
    https://www.deeplearning.ai/short-courses/langchain-chat-with-your-data/
  5. A Gentle Intro to Chaining LLMs, Agents, and utils via LangChain
    https://towardsdatascience.com/a-gentle-intro-to-chaining-llms-agents-and-utils-via-langchain-16cd385fca81
  6. The LangChain Cookbook - Beginner Guide To 7 Essential Concepts
    https://youtu.be/2xxziIWmaSA?list=PLqZXAkvF1bPNQER9mLmDbntNfSpzdDIU5
  7. Greg Kamradt’s LangChain Youtube Playlist
    https://www.youtube.com/playlist?list=PLqZXAkvF1bPNQER9mLmDbntNfSpzdDIU5
  8. 1littlecoder LangChain Youtube Playlist
    https://www.youtube.com/playlist?list=PLqZXAkvF1bPNQER9mLmDbntNfSpzdDIU5
  9. Pincone
    https://docs.pinecone.io/docs/quickstart
    https://python.langchain.com/docs/integrations/vectorstores/pinecone
  10. LangChain - Vercel AI SDK
    https://sdk.vercel.ai/docs/guides/providers/langchain
  11. Using Python and Flask in Next.js 13 API
    https://github.com/wpcodevo/nextjs-flask-framework
    https://vercel.com/templates/python/flask-hello-world
    https://vercel.com/docs/functions/serverless-functions/runtimes/python
    https://codevoweb.com/how-to-integrate-flask-framework-with-nextjs/#google_vignette
    https://github.com/vercel/examples/tree/main/python
    https://github.com/orgs/vercel/discussions/2732
    https://flask.palletsprojects.com/en/2.3.x/tutorial/
    https://flask.palletsprojects.com/en/2.3.x/

Reference Material:

LangChain Official Docs
https://python.langchain.com/docs/get_started/introduction
LangChain AI Handbook
https://www.pinecone.io/learn/series/langchain/
Top 5 Resources to learn LangChain
https://medium.com/@ankity09/top-5-resources-to-learn-langchain-e2bdbbd11702
Official LangChain YouTube channelLangchain
https://python.langchain.com/docs/additional_resources/youtube

Projects

  1. Building Custom Q&A Applications Using LangChain and Pinecone Vector Database
    https://www.analyticsvidhya.com/blog/2023/08/qa-applications/
  2. End to End LLM Project Using Langchain | NLP Project End to End
    https://www.youtube.com/watch?v=MoqgmWV1fm8&ab_channel=codebasics
    3.Build and Learn: AI App Development for Beginners: Unleashing ChatGPT API with LangChain & Streamlit
    https://www.amazon.com/Build-Learn-Development-Beginners-Unleashing/dp/B0CDNNC5Z1/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1695978776&sr=8-1

Fundamentals of GenAI Quiz

Total Questions: 40
Duration: 60 minutes