mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
Revert "Merge pull request #1523 from CREDO23/fix/chat-citations"
This reverts commitcd2242147a, reversing changes made toa4bb0a5253.
This commit is contained in:
parent
fb955d3201
commit
a08de01cc7
53 changed files with 410 additions and 1788 deletions
|
|
@ -286,12 +286,9 @@ def _mock_external_apis(monkeypatch):
|
|||
"app.indexing_pipeline.cache.cached_indexing.embed_texts",
|
||||
MagicMock(side_effect=lambda texts: [[0.1] * _EMBEDDING_DIM for _ in texts]),
|
||||
)
|
||||
from app.indexing_pipeline.document_chunker import ChunkSlice
|
||||
|
||||
chunk = "Test chunk content."
|
||||
monkeypatch.setattr(
|
||||
"app.indexing_pipeline.cache.cached_indexing.chunk_markdown_with_spans",
|
||||
MagicMock(return_value=[ChunkSlice(chunk, 0, len(chunk))]),
|
||||
"app.indexing_pipeline.cache.cached_indexing.chunk_text",
|
||||
MagicMock(return_value=["Test chunk content."]),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue