Skip to content

Commit

Permalink
Adding final v1.0 modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasAber committed Jul 21, 2024
1 parent a645b5b commit 1437c26
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion query_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,20 @@ def format_context(context):

def main():

# loading documents should be performed only once, ti will take a bit of time at first
"""
loading documents should be performed only once, ti will take a bit of time at first.
You can comment them out as chromaDB has the infos already
"""

documents = load_documents()
chunks = split_documents(documents)
embed_and_store_documents(chunks)
print("Documents loaded, split, and stored")




query = "How to enter prison in Monopoly?"

PROMPT_TEMPLATE = """
Expand Down

0 comments on commit 1437c26

Please sign in to comment.