Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dependencies = [
"anthropic>=0.69.0",
"nemoguardrails>=0.16.0",
"tiktoken>=0.11.0",
"langfuse>=3.8.1",
]

[tool.pyright]
Expand Down
3 changes: 2 additions & 1 deletion src/contextual_retrieval/contextual_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from loguru import logger
import asyncio
import time

from langfuse import observe
from contextual_retrieval.config import ConfigLoader, ContextualRetrievalConfig

# Type checking import to avoid circular dependency at runtime
Expand Down Expand Up @@ -126,6 +126,7 @@ def _clear_session_cache(self):
logger.debug("Clearing session LLM service cache")
self._session_llm_service = None

@observe(name="retrieve_contextual_chunks", as_type="retriever")
async def retrieve_contextual_chunks(
self,
original_question: str,
Expand Down
Loading
Loading