Closed BlockchainExpert2023 closed 4 months ago
Resolved ! Path in LLM :
PERSIST_DIRECTORY=db
LLM = ./ggml-gpt4all-j-v1.3-groovy.bin
BACKEND = gptj
EMBEDDINGS_MODEL = all-MiniLM-L6-v2
MODEL_N_CTX = 1000
TARGET_SOURCE_CHUNKS = 6
IGNORE_FOLDERS = '["folder\\\\to\\\\ignore", "folder\\\\to\\\\ignore2"]'
And I had to resolve an error in code :
class Eunomia:
def __init__(self) -> None:
self.cwd = self.get_cwd()
#self.db = f"{self.cwd}\{os.environ.get('PERSIST_DIRECTORY')}".strip()
self.db = f"{self.cwd}\\{os.environ.get('PERSIST_DIRECTORY')}".strip()
It reads documents in the Eunomia directory so it takes the Eunomia .py files by default. I have not found where we can define the input directory for the files we want it to read (and only these files). As I want to make some tests with c# then I had to change the extention to .cpp (I know it is not compatible with C# so that is normal).
And my .env : PERSIST_DIRECTORY=db LLM = ggml-gpt4all-j-v1.3-groovy.bin BACKEND = gptj EMBEDDINGS_MODEL = all-MiniLM-L6-v2 MODEL_N_CTX = 1000 TARGET_SOURCE_CHUNKS = 6 IGNORE_FOLDERS = '["folder\\to\\ignore", "folder\\to\\ignore2"]'
And I have downloaded "ggml-gpt4all-j-v1.3-groovy.bin"
Thanks