Giter Club home page Giter Club logo

sarvadnya's Introduction

Hi I'm Yogesh

I:

  • ๐ŸŒฑ Create free educational content about Python, Machine/Deep Learning, etc. and open-source it under 'TeachingDataScience' repository here.
  • ๐Ÿ‘ฏ Counsel for Mid-career transition to Data Science. My own transition is here and here is my TEDX talk on this topic. General Learning Path for such transition is here.
  • ๐Ÿ’ฌ Run office hours for any technical or career coaching queries, on Saturdays 2 to 5 pm (India time). Feel free to send email for appointment to my firstnamelastname at yahoo dot com . More details here and here
  • ๐Ÿ“ซ Post on LinkedIn regarding AI-ML and allied topics. I would be very happy if you follow me there. ๐Ÿ˜Š
  • โšก Publish my blogs-stories on Medium as well. Feel free to follow me here.

Github Stats

Thank you ๐Ÿ™

sarvadnya's People

Contributors

dependabot[bot] avatar mrajsingh avatar vaibhav-malpani avatar yogeshhk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sarvadnya's Issues

Warnings in ask_wikipedia

Hi,

I got warnings for importing few classes from langchain. Seems that some classes were deprecated from langchain and moved to langchain_community. (Reference)

Example Warning:

LangChainDeprecationWarning: Importing document loaders from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:

from langchain_community.document_loaders import WikipediaLoader.

To install langchain-community run pip install -U langchain-community.

I got rid of such warnings by importing few clasess from langchain_community instead of langchain in main_driver.py.
from langchain_community.document_loaders import WikipediaLoader
from langchain_community.vectorstores import Chroma

And for importing VertexAIEmbeedings, the warning was:

LangChainDeprecationWarning: The class langchain_community.embeddings.vertexai.VertexAIEmbeddings was deprecated in langchain-community 0.0.12 and will be removed in 0.2.0. An updated version of the class exists in the langchain-google-vertexai package and should be used instead. To use it run pip install -U langchain-google-vertexai and import as from langchain_google_vertexai import VertexAIEmbeddings.
warn_deprecated(

So, installing langchain-google-vertexai and using below import resolved the above warning.
from langchain_google_vertexai import VertexAIEmbeddings

Perhaps needs an update in the master branch code of ask_wikipedia to use the langchain_community for imports of relevant classes?

Switch to Open Source Models

Update all chatbots to work on open-source models such as Llama and comment usage of openai or any such paid API.
Don't delete the code. As sometimes anyone with requisite credentials can uncomment and start using it.

Change to Llama 2 from Open AI

Code: https://github.com/yogeshhk/Sarvadnya/tree/master/src/ask_manim

Currently it uses openai

    response = openai.ChatCompletion.create(
        model=openai_model.lower(),
        messages=[
            {"role": "system", "content": GPT_SYSTEM_INSTRUCTIONS},
            {"role": "user", "content": wrap_prompt(prompt)}
        ],
        max_tokens=max_tokens
    )

Need to remove dependancy on Open AI (and its KEY), and add use of open source models like Lllama 2, in place:

from langchain_community.llms import CTransformers

    # Load the locally downloaded model here
    llm = CTransformers(
        model="../models/TheBloke/Llama-2-7B-Chat-GGML",
        model_type="llama",
        max_new_tokens=1024,
        temperature=0.5
    )

May need to have corresponding Chat Model LLM.

Upgrade Langchain etc

Upgrade all repos to the latest langchain, make them running, add requirements txt wherever missing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.