2024-02-08 Streamlit at GitHub
A solution to limited context windows
and that's tricky
Turning words into numbers
...plus everything on Hugging Face!
from llama_index import VectorStoreIndex, SimpleDirectoryReader
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What did the author do growing up?")
print(response)
Let's do it in 5 lines of code:
– Shawn "swyx" Wang, Latent.Space podcast
Gunderson Dettmer
Retrieve, Augment, Generate
Follow me on twitter: @seldo