embedder
This commit is contained in:
20
embed-001.py
20
embed-001.py
@@ -12,11 +12,11 @@ import time
|
||||
class AnythingLLMDocumentProcessor:
|
||||
def __init__(
|
||||
self,
|
||||
anythingllm_url: str = "http://localhost:3001",
|
||||
anythingllm_api_key: str = "",
|
||||
workspace_slug: str = "",
|
||||
qdrant_url: str = "http://localhost:6333",
|
||||
collection_name: str = "documents"
|
||||
anythingllm_url: str = "http://10.100.50.16:30239",
|
||||
anythingllm_api_key: str = "TN4TAY5-BB6M8AP-KF5PWWF-E3TFJ1E",
|
||||
workspace_slug: str = "dialogue",
|
||||
qdrant_url: str = "http://10.100.50.16:6333",
|
||||
collection_name: str = "dialogue"
|
||||
):
|
||||
"""
|
||||
Initialize the document processor for AnythingLLM.
|
||||
@@ -236,11 +236,11 @@ def main():
|
||||
|
||||
# Configuration
|
||||
FOLDER_PATH = "./documents" # Change to your folder path
|
||||
ANYTHINGLLM_URL = "http://localhost:3001" # Your AnythingLLM URL
|
||||
ANYTHINGLLM_API_KEY = "YOUR_API_KEY_HERE" # Get from AnythingLLM Settings > API Keys
|
||||
WORKSPACE_SLUG = "my-workspace" # Your workspace slug
|
||||
QDRANT_URL = "http://localhost:6333" # Your Qdrant URL
|
||||
COLLECTION_NAME = "anythingllm" # Default collection name used by AnythingLLM
|
||||
ANYTHINGLLM_URL = "http://10.100.50.16:30239" # Your AnythingLLM URL
|
||||
ANYTHINGLLM_API_KEY = "TN4TAY5-BB6M8AP-KF5PWWF-E3TFJ1E" # Get from AnythingLLM Settings > API Keys
|
||||
WORKSPACE_SLUG = "dialogue" # Your workspace slug
|
||||
QDRANT_URL = "http://10.100.50.16:6333" # Your Qdrant URL
|
||||
COLLECTION_NAME = "dialogue" # Default collection name used by AnythingLLM
|
||||
|
||||
# Specify file types to process
|
||||
FILE_EXTENSIONS = ['.txt', '.md', '.pdf', '.docx', '.csv', '.json']
|
||||
|
||||
Reference in New Issue
Block a user