Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vector Search and LLM

Vector Search and LLM

Ariya Hidayat

November 15, 2023
Tweet

More Decks by Ariya Hidayat

Other Decks in Programming

Transcript

  1. Fancy Autocomplete The CEO of Google is a fan of

    the company's new Pixel 4a phone, which has a $399 price tag. Google CEO Sundar Pichai said in a tweet that he was "excited" about the new phone and that iwas a great value for consumers.
  2. Fancy Autocomplete The CEO of Google is a fan of

    the company's new Pixel 4a phone, which has a $399 price tag. Google CEO Sundar Pichai said in a tweet that he was "excited" about the new phone and that iwas a great value for consumers.
  3. Stage Director This is a conversation between User and Llama,

    a friendly chatbot. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision. User: Who is the CEO of Google? Llama: ___ ___ ___ ___ ___ ___ ___
  4. Stage Director This is a conversation between User and Llama,

    a friendly chatbot. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision. User: Who is the CEO of Google? Llama: The CEO of Google is Sundar Pichai.
  5. Chain of Thought You run in a process of Question,

    Thought, Action, Observation. Use Thought to describe your thoughts about the question you have been asked. Observation will be the result of running those actions. Finally at the end, state the Answer. Thought: This is about science, I can recall the answer from my memory. Action: lookup: largest planet. Observation: Jupiter is the largest planet. Answer: The largest planet is Jupiter.
  6. Reason-Act Thought: This is about weather and I will use

    weather action. Action: weather: Palo Alto Observation: No, it's not currently snowing in Palo Alto. Answer: It's not currently snowing in Palo Alto. 1
  7. Reason-Act Thought: This is about weather and I will use

    weather action. Action: weather: Palo Alto Observation: The current weather in Palo Alto is clear sky at 17.5 °C and humidity 48% Answer: No, it is not currently snowing in Palo Alto. 2 Weather API
  8. Sans History This is a conversation between User and Llama,

    a friendly chatbot. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision. User: How far is it from Earth? Llama: ????
  9. With History This is a conversation between User and Llama,

    a friendly chatbot. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision. User: Which planet is the largest? Llama: Jupiter. User: How far is it from Earth? Llama: ___ ___ ___ ___ ___ ___ ___ ___
  10. cities id name coord 731 Mountain View [37.39, -122.08] 987

    Redwood City [37.49, -122.24] 819 Menlo Park [37.45, -122.18] 056 San Jose [37.34, -121.89]
  11. 1 The Solar System was formed 4.6 billion years ago

    2 The Solar System will remain roughly as it is known 3 The outer Solar System is beyond the asteroids, incl … __ .. __ .. __ .. __ __ .. __ .. __ .. __ 408 Humanity's perspective Humanity's knowledge of the When was our solar system formed?
  12. Relevant Chunks The Solar System was formed 4.6 billion years

    ago … The Solar System will remain roughly as it is known … The outer Solar System is [40] beyond the asteroids …
  13. Prompt, with Supporting Document You are good at answering question.

    Use the following supporting document. The Solar System was formed 4.6 billion years ago … The Solar System will remain roughly as it is known … The outer Solar System is [40] beyond the asteroids … User: When was solar system formed? Llama: ___ ___ ___ ___ ___ ___ ___ ___