Skip to content

priyank-p0/folder_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folder Content Reader

Folder Analysis Tool Using LLM and RAG

  1. place huggingface token in .env file

  2. Install required packages:

pip install -r requirements.txt

Usage

3.1. Run the script from the command line to read folder contents:

python folder_reader.py path/to/folder
{
    "filename.pdf": {
        "file_type": "pdf",
        "content": "extracted text content..."
    },
    "document.txt": {
        "file_type": "txt",
        "content": "text file content..."
    }
}

3.2.Run the script from the command line to execute RAG: DEFINE

  1. WORKING_DIR to set the working directory
  2. json_file to point to the output of folder_reader.py or JSON file containing contents of files
  3. cache_dir to specify the directory for huggingface cache
python rag_analyzer.py

About

Folder Analysis Tool Using LLM and RAG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages