Artificial Neural Networks (models) with general-purpose language understanding and generation. Exploded in popularity after the Attention Is All You Need (2017) research paper that introduced the Transformers architecture.
focus on writing business logic and not reinventing engineering solutions" Old World (before AI) Business logic in models and service objects New World (after AI) Business logic in prompts
use Tools (APIs, other systems) via 'Function Calling' Work best with powerful LLMs Can be used to automate workflows/business processes and execute multi-step tasks
3 Lack of tooling 4 Risky THE CITY - NYC News NYC AI Chatbot Touted by Adams Tells Businesses to Break the Law The Microsoft-powered bot says bosses can take workerʼs tips and that landlords can discriminate based on source of income. That's not right. aibusiness.com Air Canada Held Responsible for Chatbotʼs Hallucinations Air Canada's chatbot gave a traveler wrong airfare information. The traveler sued when the airline refused to give a refund. GM Authority GM Dealer Chat Bot Agrees To Sell 2024 Chevy Tahoe For $1 One customer recently managed to trick a dealer chat bot to agree to sell them a new 2024 Chevy Tahoe for just $1.
or say unintended things through prompting Many-shot jailbreaking — including large amounts of text in a specific configuration that forces LLMs to produce potentially harmful responses, despite their being trained not to do so.
Retrieve relevant documents by running similarity search in a vector database. 3 Construct the RAG prompt to send to the LLM. 4 Get the response back from the LLM in natural language
space, organized by its meaning. LLMs encode meaning behind texts in the embedding space or "latent space". OpenAI's text-embedding-ada-002 model uses 1536 dimensions.
- 1.0 score) Faithfulness Ensuring retrieved context can act as a justification for the generated answer Context Relevance Context is focused, with little to no irrelevant information Answer Relevance The answer addresses the actual question
more llm.chat() llm.embed() Common interface for LLMs: vector_db = Langchain::LLM::Weaviate.new # Chroma, Qdrant, and more vector_db.add_texts() vector_db.similarity_search() vector_db.ask() # Naive RAG Common interface for vectorsearch DBs:
X 1. Ruby Developer is sad a library exists in Python but not in Ruby.2. Ruby Developer copy- pastes said library' s files one by one into ChatGPT.3. ChatGPT converts Python code to Ruby code.4. Ruby Developer fixes a few undefined errors and imports the correct…