feat(memory): integrate Mem0 for enhanced conversational memory
Some checks failed
Build and Push Docker / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker / build-and-push (push) Has been cancelled
This commit is contained in:
@ -52,17 +52,31 @@ MILVUS_INDEX_PARAMS = {"index_type": "FLAT", "metric_type": "L2", "params": {}}
|
||||
MILVUS_SEARCH_PARAMS = {"metric_type": "L2", "params": {}}
|
||||
MILVUS_STAND_URI = ""
|
||||
|
||||
# --- RAG Pipeline Configuration (保持不变) ---
|
||||
RETRIEVER_TOP_K = 3
|
||||
DEFAULT_PROMPT_TEMPLATE = """
|
||||
hello
|
||||
{% for doc in documents %}
|
||||
{{ doc.content }}
|
||||
{% endfor %}
|
||||
MEM0_CONFIG = {
|
||||
"vector_store": {
|
||||
"provider": "milvus",
|
||||
"config": {
|
||||
"embedding_model_dims": 2048,
|
||||
}
|
||||
},
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"config": {
|
||||
"api_key": OPENAI_API_KEY_FROM_CONFIG,
|
||||
"model": "doubao-seed-1-6-250615",
|
||||
"openai_base_url": OPENAI_API_BASE_URL_CONFIG
|
||||
}
|
||||
},
|
||||
"embedder": {
|
||||
"provider": "openai",
|
||||
"config": {
|
||||
"api_key": OPENAI_EMBEDDING_KEY,
|
||||
"model": "doubao-embedding-large-text-250515",
|
||||
"openai_base_url": OPENAI_EMBEDDING_BASE
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
问题: {{query}}
|
||||
答案:
|
||||
"""
|
||||
|
||||
# --- Application Settings (保持不变) ---
|
||||
DEFAULT_USER_ID = "user_openai"
|
||||
|
Reference in New Issue
Block a user