feat(Focus): Enhance hover effects and update icon colors for better visibility
feat(Optimization): Update icon colors for consistency and improve hover styles feat(SimplifiedAgent): Add messagesCount parameter to initializeAgent for adaptive prompts
This commit is contained in:
parent
7b4a7a531e
commit
803fd5cc17
6 changed files with 61 additions and 37 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# Tracing LLM Calls in Perplexica
|
||||
|
||||
Perplexica supports tracing all LangChain and LangGraph LLM calls for debugging, analytics, and prompt transparency. You can use either Langfuse (self-hosted, private, or cloud) or LangSmith (cloud, by LangChain) for tracing.
|
||||
|
|
@ -10,21 +9,22 @@ Langfuse is an open-source, self-hostable observability platform for LLM applica
|
|||
### Setup
|
||||
|
||||
1. **Deploy Langfuse**
|
||||
- See: [Langfuse Self-Hosting Guide](https://langfuse.com/docs/self-hosting)
|
||||
- You can also use the Langfuse Cloud if you prefer.
|
||||
- See: [Langfuse Self-Hosting Guide](https://langfuse.com/docs/self-hosting)
|
||||
- You can also use the Langfuse Cloud if you prefer.
|
||||
|
||||
2. **Configure Environment Variables**
|
||||
- Add the following to your environment variables in docker-compose or your deployment environment:
|
||||
- Add the following to your environment variables in docker-compose or your deployment environment:
|
||||
|
||||
```env
|
||||
LANGFUSE_PUBLIC_KEY=your-public-key
|
||||
LANGFUSE_SECRET_KEY=your-secret-key
|
||||
LANGFUSE_BASE_URL=https://your-langfuse-instance.com
|
||||
```
|
||||
- These are required for the tracing integration to work. If not set, tracing is disabled gracefully.
|
||||
```env
|
||||
LANGFUSE_PUBLIC_KEY=your-public-key
|
||||
LANGFUSE_SECRET_KEY=your-secret-key
|
||||
LANGFUSE_BASE_URL=https://your-langfuse-instance.com
|
||||
```
|
||||
|
||||
- These are required for the tracing integration to work. If not set, tracing is disabled gracefully.
|
||||
|
||||
3. **Run Perplexica**
|
||||
- All LLM and agent calls will be traced automatically. You can view traces in your Langfuse dashboard.
|
||||
- All LLM and agent calls will be traced automatically. You can view traces in your Langfuse dashboard.
|
||||
|
||||
## LangSmith Tracing (Cloud by LangChain)
|
||||
|
||||
|
|
@ -38,5 +38,6 @@ Perplexica also supports tracing via [LangSmith](https://smith.langchain.com/),
|
|||
---
|
||||
|
||||
For more details on tracing, see the respective documentation:
|
||||
|
||||
- [Langfuse Documentation](https://langfuse.com/docs)
|
||||
- [LangSmith Observability](https://docs.smith.langchain.com/observability)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue