Removed unused imports and simplified the help.py file.

This commit is contained in:
Paul Gauthier (aider) 2024-06-25 15:08:20 -07:00
parent 352917de7b
commit d3e0091346

View file

@ -1,30 +1,19 @@
#!/usr/bin/env python #!/usr/bin/env python
import json
import os
import sys
import time import time
from collections import defaultdict
from pathlib import Path from pathlib import Path
import litellm import litellm
litellm.suppress_debug_info = True
import faiss
from dump import dump from dump import dump
from llama_index.core import ( from llama_index.core import (
Document, Document,
SimpleDirectoryReader,
StorageContext, StorageContext,
VectorStoreIndex, VectorStoreIndex,
load_index_from_storage, load_index_from_storage,
) )
from llama_index.core.ingestion import IngestionPipeline
from llama_index.core.node_parser import MarkdownNodeParser from llama_index.core.node_parser import MarkdownNodeParser
from llama_index.core.storage.docstore import SimpleDocumentStore
from llama_index.core.storage.index_store import SimpleIndexStore litellm.suppress_debug_info = True
from llama_index.readers.file import FlatReader
def should_skip_dir(dirname): def should_skip_dir(dirname):