mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
use ~/.aider/caches
This commit is contained in:
parent
3d51102de5
commit
81195dad02
2 changed files with 4 additions and 5 deletions
|
@ -63,7 +63,7 @@ def get_index():
|
|||
)
|
||||
from llama_index.core.node_parser import MarkdownNodeParser
|
||||
|
||||
dname = Path.home() / ".aider" / ("help." + __version__)
|
||||
dname = Path.home() / ".aider" / "caches" / ("help." + __version__)
|
||||
|
||||
if dname.exists():
|
||||
storage_context = StorageContext.from_defaults(
|
||||
|
@ -90,7 +90,7 @@ def get_index():
|
|||
nodes += parser.get_nodes_from_documents([doc])
|
||||
|
||||
index = VectorStoreIndex(nodes, show_progress=True)
|
||||
dname.parent.mkdir(exist_ok=True)
|
||||
dname.parent.mkdir(parents=True, exist_ok=True)
|
||||
index.storage_context.persist(dname)
|
||||
|
||||
return index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue