You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,14 +40,16 @@ There are two main example folders
40
40
- loads text from the documents folder (using `st.cache_resource`, so it only loads once)
41
41
- provides an input text-box and a button to run the query
42
42
- the string response is displayed after it finishes
43
-
- want to see this example in action? Check it out [here](https://llama-index.streamlit.app/)
43
+
- want to see this example in action? Check it out [here](https://huggingface.co/spaces/llamaindex/llama_index_vector_demo)
44
44
45
45
- streamlit_sql_sandbox (runs on localhost:8501)
46
46
-`streamlit run streamlit_demo.py`
47
47
- creates a streamlit app using a local SQL database about restaurant inspections in San Francisco ([data sample](https://docs.google.com/spreadsheets/d/1Ag5DBIviYiuRrt2yr3nXmbPFV-FOg5fDH5SM3ZEDnpw/edit#gid=780513932))
48
48
- The "Setup" tab allows you to configure various LLM and LLama Index settings
49
49
- The "Llama Index" tab demos some basic Text2SQL capabilities using only Llama Index
50
50
- The "Langchain+Llama Index" tab uses a custom langchain agent, and uses the SQL index from Llama Index as a tool during conversations.
51
+
- Check out the huggingface space [here!](https://huggingface.co/spaces/llamaindex/llama_index_sql_sandbox)
52
+
51
53
52
54
## Docker
53
55
Each example contains a `Dockerfile`. You can run `docker build -t my_tag_name .` to build a python3.11-slim docker image inside your desired folder. It ends up being about 600MB-900MB depending on the example.
"This sandbox uses a sqlite database by default, containing information on health violations and inspections at restaurants in San Francisco.\n\n"
68
-
"The database contains three tables - businesses, inspections, and violations.\n\n"
63
+
"This sandbox uses a sqlite database by default, powered by [Llama Index](https://gpt-index.readthedocs.io/en/latest/index.html) ChatGPT, and LangChain.\n\n"
64
+
"The database contains information on health violations and inspections at restaurants in San Francisco."
65
+
"This data is spread across three tables - businesses, inspections, and violations.\n\n"
69
66
"Using the setup page, you can adjust LLM settings, change the context for the SQL tables, and change the tool description for Langchain."
67
+
"The other tabs will perform chatbot and text2sql operations.\n\n"
68
+
"Read more about LlamaIndexes structured data support [here!](https://gpt-index.readthedocs.io/en/latest/guides/tutorials/sql_guide.html)"
st.header("Welcome to the Llama Index Streamlit Demo")
40
-
st.text("Please enter a query about Paul Graham's essays")
33
+
st.write("Enter a query about Paul Graham's essays. You can check out the original essay [here](https://raw.githubusercontent.com/jerryjliu/llama_index/main/examples/paul_graham_essay/data/paul_graham_essay.txt). Your query will be answered using the essay as context, using embeddings from text-ada-002 and LLM completions from ChatGPT. You can read more about Llama Index and how this works in [our docs!](https://gpt-index.readthedocs.io/en/latest/index.html)")
34
+
35
+
index=None
36
+
api_key=st.text_input("Enter your OpenAI API key here:", type="password")
0 commit comments