Skip to content

Commit

Permalink
storage
Browse files Browse the repository at this point in the history
  • Loading branch information
orectique committed Jun 10, 2024
1 parent fd6a773 commit 2d5854b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idec8003forge.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# Load local data
from llama_index.core import SimpleDirectoryReader
local_doc_reader = SimpleDirectoryReader(input_dir='../Data')
local_doc_reader = SimpleDirectoryReader(input_dir='./Data')
docs = local_doc_reader.load_data(show_progress=True)

# We'll load some Wikipedia pages as well
Expand All @@ -48,7 +48,7 @@
)

# Save the index
index.storage_context.persist(persist_dir="../Storage")
index.storage_context.persist(persist_dir="./storage")

query_engine = index.as_query_engine()
with open("./output.txt", "w") as f:
Expand Down
3 changes: 3 additions & 0 deletions just_run_this.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ wget https://huggingface.co/Mozilla/Mistral-7B-Instruct-v0.2-llamafile/resolve/m
# give it permission to execute
chmod +x mistral-7b-instruct-v0.2.Q4_0.llamafile

# Make the storage directory
mkdir storage

# Start the llamafile server
./mistral-7b-instruct-v0.2.Q4_0.llamafile --server --nobrowser --embedding --port 8080

Expand Down

0 comments on commit 2d5854b

Please sign in to comment.