Refactor document handling and update Milvus collection settings
- Removed multiple failed document entries from `documents.json`. - Added a new document entry with updated metadata and changed the index name to `regulations_dense_1024_v2`. - Updated architecture documentation to reflect changes in the Milvus collection name. - Adjusted requirements by removing the sqlalchemy dependency. - Modified test cases to align with new document structure and naming conventions. - Introduced a new test file for Milvus vector index runtime recovery and error handling. - Updated assertions in various test files to ensure compatibility with the new schema.
This commit is contained in:
@@ -113,12 +113,12 @@ class FakeAgentConversationService:
|
||||
sources=[
|
||||
AnswerSource(
|
||||
doc_id="doc-api-1",
|
||||
doc_name="测试法规",
|
||||
doc_title="测试法规",
|
||||
chunk_id="chunk-1",
|
||||
section_title="第一章",
|
||||
page_number=1,
|
||||
page_start=1,
|
||||
score=0.92,
|
||||
content="法规原文",
|
||||
text="法规原文",
|
||||
metadata={"section_title": "第一章"},
|
||||
)
|
||||
],
|
||||
@@ -218,7 +218,6 @@ def test_agent_ask_and_stream_contract_preserved(monkeypatch):
|
||||
|
||||
store = FakeConversationStore()
|
||||
monkeypatch.setattr(agent, "get_agent_conversation_service", lambda: FakeAgentConversationService())
|
||||
monkeypatch.setattr(agent, "get_conversation_store", lambda: store)
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user