Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,8 @@ import re
|
|
| 10 |
# storage_context = StorageContext.from_defaults(persist_dir=f'./md_vector_store')
|
| 11 |
# index = load_index_from_storage(storage_context)
|
| 12 |
|
|
|
|
|
|
|
| 13 |
sections = split_markdown_by_section(md_file)
|
| 14 |
docs = build_documents(sections)
|
| 15 |
index = create_vector_index(docs)
|
|
|
|
| 10 |
# storage_context = StorageContext.from_defaults(persist_dir=f'./md_vector_store')
|
| 11 |
# index = load_index_from_storage(storage_context)
|
| 12 |
|
| 13 |
+
md_file = "opertgfr2.md"
|
| 14 |
+
|
| 15 |
sections = split_markdown_by_section(md_file)
|
| 16 |
docs = build_documents(sections)
|
| 17 |
index = create_vector_index(docs)
|