GithubHelp home page GithubHelp logo

sitek94 / ai-devs2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.84 MB

My repo for the second edition of AI Devs

Home Page: https://www.aidevs.pl/

TypeScript 95.20% JavaScript 1.46% Handlebars 0.25% Shell 3.09%
gpt langchain llm openai

ai-devs2's Introduction

AI Devs 2

My repo for the second edition of AI Devs.

Progress

API Exercises Prompt Exercises Quizzes Certificate
100% 100% 100% Certificate

Exercises

Chapter/Lesson Name Topics
C01L01 helloapi Intro to AI Devs API
C01L04 moderation OpenAI Moderation API
C01L04 blogger Langchain + output parsers; ensuring correct format of response
C01L05 liar Guard mechanism for LLM response
C02L02 inprompt LLM response based on dynamic context
C02L03 embedding OpenAI Embedding API
C02L04 whisper OpenAI Whisper API
C02L05 functions OpenAI Functions Calling
C03L01 rodo Placeholders in prompts to improve privacy
C03L02 scraper Scrape article and use it as dynamic context + guard mechanism
C03L03 whoami Build dynamic context during consecutive API calls
C03L04 search Vector DB + similarity search
C03L05 people Vector DB + similarity search + Traditional DB == dynamic context
C04L01 knowledge Choosing tool to call based on input
C04L02 tools Intent detection
C04L03 gnome OpenAI Vision API - image recognition
C04L04 ownapi Dedicated backend for your AI assistant; experiments with ngrok
C04L05 ownapiapi Extended ownapi with keeping conversation context
C05L01 meme Generating a meme using RenderForm API
C05L02 optimaldb Summarizing facts about people to optimize DB
C05L03 google Searching Google using SerpAPI to provide GPT with dynamic context
C05L04 md2html Fine-tuning of GPT-3.5 Turbo for converting Markdown to HTML

Getting started

# Install dependencies
bun install

# Create env file and fill it with your data
cp .env.example .env

# Generate new exercise file
bun new helloapi
bun new people --dir # (create directory for exercise)

# Run exercises (works for both single file and directory)
bun ex helloapi      # Runs ./exercises/helloapi.ts
bun ex google        # Runs ./exercises/google/google.ts
bun ex google/server # Runs ./exercises/google/server.ts

Debugging

Activate debug mode and enable detailed logging by setting these variables in your .env file:

# Enable verbose output
LANGCHAIN_VERBOSE=true

# Activate enhanced tracing
LANGCHAIN_TRACING_V2=true

Vector databases

I'm using Qdrant for exercises with Vector Databases. You can run it locally using Docker:

# Pull docker image and run it
docker pull qdrant/qdrant
docker run -p 6333:6333 -v $(pwd)/qdrant_storage:/qdrant/storage qdrant/qdrant

Resources

ai-devs2's People

Contributors

sitek94 avatar

Watchers

 avatar  avatar

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.