Files

1 line
2.9 KiB
JSON

{"repo": "cfn-softbio/scibot", "files": {"scripts/config.py": {"8ae585fb19191cc7372bf31c07ab6946c0bd60a1": {"t": 1785674421.2266512, "n": 2659, "h": "b5b13084289d4316", "c": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\"\"\"\nFilename: config.py\nDescription:\n This file stores configuration variables for the SciBot to run. \nYour SciBot code can import this so that required parameters are set.\n\"\"\"\n\n\n\n\nfrom pathlib import Path\nbase_dir = Path('/home/user/SciBot/')\n\n\nSciBot_configuration = {\n \n 'document_dir': base_dir / 'documents/',\n \n 'chunk_length': 1400, # chars\n 'chunk_overlap_length': 280, # chars\n \n 'grobid': {\n 'config_file': base_dir / 'Grobid/client/config.json',\n },\n \n 'openai': {\n 'api_key': 'sk-************************************************',\n #'model': 'gpt-3.5-turbo',\n #'model': 'gpt-3.5-turbo-0613', # function calls introduced\n #'model_token_limit': 4096, # ~16,384 chars\n #'model': 'gpt-3.5-turbo-16k', # Extended context length\n #'model_token_limit': 16384, # ~65k chars\n #'model': 'gpt-4',\n #'model_token_limit': 8000, # ~32k chars\n 'model': 'gpt-4o',\n 'model_token_limit': 128000, # ~512k chars\n 'embedding_model': 'text-embedding-ada-002', # 1,536 length vector\n 'embedding_model_token_limit': 8191, # ~32,764 chars\n },\n \n 'azure_openai': {\n # Refer to your Azure configuration to create/check the endpoint and deployment names\n # Microsoft Azure: https://portal.azure.com/#home.\n # Azure OpenAI Studio: https://oai.azure.com/portal/\n 'api_key': '******************************** ',\n 'endpoint': 'https://*****.openai.azure.com/',\n 'deployment_name': '********',\n #'model': 'gpt-35-turbo-16k',\n #'model_token_limit': 16384, # ~65k chars\n #'model': 'gpt-4',\n #'model_token_limit': 128000, # ~512k chars\n 'model': 'gpt-4o',\n 'model_token_limit': 128000, # ~512k chars\n 'embedding_deployment_name': '********',\n 'embedding_model': 'text-embedding-ada-002', # 1,536 length vector\n 'embedding_model_token_limit': 8191, # ~32k chars\n },\n \n \n 'anthropic': {\n 'api_key': 'sk-ant-api03-***********************************************************************************************'\n #'model': 'claude-instant-1',\n 'model': 'claude-1',\n 'model_token_limit': 9000, # ~36,000 chars\n #'model': 'claude-1-100k',\n #'model_token_limit': 100000, # ~400,000 chars\n 'max_tokens_to_sample': 1000,\n }, \n \n 'doc_database': {\n 'host': 'localhost',\n 'database': 'SciBot_DocumentStore',\n 'user': 'scibot',\n 'password': '********',\n } \n \n \n }\n"}}}}