Use constants.py file
This commit is contained in:
		
							parent
							
								
									8c6a81a07f
								
							
						
					
					
						commit
						f12ea568e5
					
				|  | @ -3,8 +3,8 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter | |||
| from langchain.vectorstores import Chroma | ||||
| from langchain.embeddings import LlamaCppEmbeddings | ||||
| from sys import argv | ||||
| from chroma_preference import PERSIST_DIRECTORY | ||||
| from chroma_preference import CHROMA_SETTINGS | ||||
| from constants import PERSIST_DIRECTORY | ||||
| from constants import CHROMA_SETTINGS | ||||
| 
 | ||||
| def main(): | ||||
|     # Load document and split in chunks | ||||
|  |  | |||
|  | @ -3,8 +3,8 @@ from langchain.embeddings import LlamaCppEmbeddings | |||
| from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler | ||||
| from langchain.vectorstores import Chroma | ||||
| from langchain.llms import GPT4All | ||||
| from chroma_preference import PERSIST_DIRECTORY | ||||
| from chroma_preference import CHROMA_SETTINGS | ||||
| from constants import PERSIST_DIRECTORY | ||||
| from constants import CHROMA_SETTINGS | ||||
| 
 | ||||
| def main():         | ||||
|     # Load stored vectorstore | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue