OpenAI's New GPT 3.5 Embedding Model for Semantic Search

Generative AI and LLMs

In this video, we'll learn how to use OpenAI's new embedding model text-embedding-ada-002. We will learn how to use the OpenAI Embedding API to generate language embeddings and then index those embeddings in the Pinecone vector database for fast and scalable vector search. This is a powerful and common combination for building semantic search, question-answering, threat detection, and other applications that rely on NLP and search over a large corpus of text data. Everything will be implemented with OpenAI's new GPT 3.5 class embedding model called text-embedding-ada-002; their latest embedding model that is 10x cheaper than earlier embedding models, more performant, and capable of indexing ~10 pages into a single vector embedding. šŸŒ² Pinecone docs: https://docs.pinecone.io/docs/openai Colab notebook: https://github.com/pinecone-io/examples/blob/master/integrations/openai/semantic_search_openai.ipynb šŸŽ™ļø Support me on Patreon: https://patreon.com/JamesBriggs šŸ‘¾ Discord: https://discord.gg/c5QtDB9RAP šŸ¤– AI Dev Studio: https://aurelio.ai/ šŸŽ‰ Subscribe for Article and Video Updates! https://jamescalam.medium.com/subscribe https://medium.com/@jamescalam/membership 00:30 Semantic search with OpenAI GPT architecture 03:43 Getting started with OpenAI embeddings in Python 04:12 Initializing connection to OpenAI API 05:49 Creating OpenAI embeddings with ada 07:24 Initializing the Pinecone vector index 09:04 Getting dataset from Hugging Face to embed and index 10:03 Populating vector index with embeddings 12:01 Semantic search querying 15:09 Deleting the environment 15:23 Final notes

OpenAI's New GPT 3.5 Embedding Model for Semantic Search

About the course

The Generative AI and Large Language Models (LLMs) course covers everything you need to know about: - Generative AI - Large Language Models (LLMs) - OpenAI, Cohere, Hugging Face - Managed vs. Open Source - LLM Libraries like LangChain and GPT Index - Long-term memory and retrieval-augmentation And more to come...

54lessons
9hours
Join now

Lessons

  1. Prompt Engineering with OpenAI's GPT-3 and other LLMs
  2. Prompt Engineering with OpenAI's GPT-3 and other LLMs
  3. Getting Started with GPT-3 vs. Open Source LLMs - LangChain #1
  4. Getting Started with GPT-3 vs. Open Source LLMs - LangChain #1
  5. Prompt Templates for GPT 3.5 and other LLMs - LangChain #2
  6. Prompt Templates for GPT 3.5 and other LLMs - LangChain #2
  7. Generative AI and Long-Term Memory for LLMs (OpenAI, Cohere, OS, Pinecone)
  8. Generative AI and Long-Term Memory for LLMs (OpenAI, Cohere, OS, Pinecone)
  9. OpenAI's New GPT 3.5 Embedding Model for Semantic Search
  10. OpenAI's New GPT 3.5 Embedding Model for Semantic Search
  11. Cohere AI's LLM for Semantic Search in Python
  12. Cohere AI's LLM for Semantic Search in Python
  13. Generative Question-Answering with OpenAI's GPT-3.5 and Davinci
  14. Generative Question-Answering with OpenAI's GPT-3.5 and Davinci
  15. Open Source Generative AI in Question-Answering (NLP) using Python
  16. Open Source Generative AI in Question-Answering (NLP) using Python
  17. GPT 4: Hands on with the API
  18. GPT 4: Hands on with the API
  19. GPT 4: Superpower results with search
  20. GPT 4: Superpower results with search
  21. ChatGPT Plugins: Build Your Own in Python!
  22. ChatGPT Plugins: Build Your Own in Python!
  23. NEW Hugging Face Agents ā€” First Look
  24. NEW Hugging Face Agents ā€” First Look
  25. Using NEW MPT-7B in Hugging Face and LangChain
  26. Using NEW MPT-7B in Hugging Face and LangChain
  27. Hugging Face Agents ā€” Building Custom Tools
  28. Hugging Face Agents ā€” Building Custom Tools
  29. Llama Index 101 with Vector DBs and GPT 3.5
  30. Llama Index 101 with Vector DBs and GPT 3.5
  31. Open LLaMa in LangChain and Hugging Face
  32. Open LLaMa in LangChain and Hugging Face
  33. NEW GPT-4 Function Calling Model!
  34. NEW GPT-4 Function Calling Model!
  35. Building Chatbot Agents from Scratch with OpenAI Functions!
  36. Building Chatbot Agents from Scratch with OpenAI Functions!
  37. MPT-30B Chatbot with LangChain!
  38. MPT-30B Chatbot with LangChain!
  39. BEST Open Source LLM ā€” Falcon 40B Chatbot in LangChain
  40. BEST Open Source LLM ā€” Falcon 40B Chatbot in LangChain
  41. Llama 2 in LangChain ā€” FIRST Open Source Conversational Agent!
  42. Llama 2 in LangChain ā€” FIRST Open Source Conversational Agent!
  43. Hugging Face LLMs with SageMaker + RAG with Pinecone
  44. Hugging Face LLMs with SageMaker + RAG with Pinecone
  45. How to Make RAG Chatbots FAST
  46. How to Make RAG Chatbots FAST
  47. NEW AI Framework - Steerable Chatbots with Semantic Router
  48. NEW AI Framework - Steerable Chatbots with Semantic Router
  49. Llama.cpp for FULL LOCAL Semantic Router
  50. Llama.cpp for FULL LOCAL Semantic Router
  51. OpenAI's NEW 256-d Embeddings vs. Ada 002
  52. OpenAI's NEW 256-d Embeddings vs. Ada 002
  53. OpenAI's Sora: Incredible AI Generated Video
  54. OpenAI's Sora: Incredible AI Generated Video