Skip to content

Commit

Permalink
add gitignore and fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshdpaul committed Dec 19, 2024
1 parent 373d20b commit 6c53aad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.pyc
.DS_Store
backup
chroma
.ipynb_checkpoints
*/.ipynb_checkpoints/*
5 changes: 3 additions & 2 deletions populate_database.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import argparse
import os
import shutil
from langchain.document_loaders.pdf import PyPDFDirectoryLoader
from langchain_community.document_loaders.pdf import PyPDFDirectoryLoader
from langchain_text_splitters import RecursiveCharacterTextSplitter
from langchain.schema.document import Document
from get_embedding_function import get_embedding_function
from langchain_community.vectorstores.chroma import Chroma

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

warnings.filterwarnings("ignore", category=DeprecationWarning)

CHROMA_PATH = "chroma"
DATA_PATH = "data"
Expand Down

0 comments on commit 6c53aad

Please sign in to comment.