clui commited on
Commit
6e2b09a
·
1 Parent(s): 087fb65

add app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
3
+ from llama_index.embeddings.huggingface import HuggingFaceEmbedding
4
+ from llama_index.core.node_parser import SentenceSplitter
5
+ from llama_index.core.ingestion import IngestionPipeline
6
+ import chromadb
7
+ from llama_index.vector_stores.chroma import ChromaVectorStore
8
+ from llama_index.llms.ollama import Ollama
9
+
10
+
11
+ # Ustawienia strony
12
+ st.title("Aplikacja z LlamaIndex")
13
+
14
+ # Załaduj dokumenty
15
+ documents = SimpleDirectoryReader('./data/').load_data()
16
+ print(documents)