-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1085 from ElishaKay/polishing
docs and docker fixes
- Loading branch information
Showing
21 changed files
with
193 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/docs/gpt-researcher/gptr/logs.md → ...esearcher/handling-logs/all-about-logs.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Langsmith Logs | ||
|
||
With the help of Langsmith, you can easily visualize logs on cost and errors within your Langsmith Dashboard (calculated per LLM call or grouped by project) | ||
|
||
Here are the steps to setup Langsmith: | ||
|
||
Step 1: Setup a Langsmith account at: [smith.langchain.com](https://smith.langchain.com) | ||
|
||
Step 2: Create a new API key at: [smith.langchain.com/settings](https://smith.langchain.com/settings) | ||
|
||
Step 3: Add these 2 environment variables: | ||
|
||
```bash | ||
LANGCHAIN_TRACING_V2=true | ||
LANGCHAIN_API_KEY=Set this to your API key | ||
``` | ||
|
||
Here's what this looks like in the Langsmith Dashboard: | ||
|
||
 | ||
|
||
This can be helpful for: | ||
|
||
- Enabling users to visualize and inspect the backend data flow | ||
- Quality assurance debugging - where can the input or output of our AI flows use improvement | ||
- Cost analysis - where are we spending the most on LLM calls | ||
- Error analysis - where are we getting the most errors | ||
- Optimizing speed - which parts of the flow are taking the most time |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...cher/gptr/handling-logs-as-they-stream.md → ...cher/handling-logs/simple-logs-example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Example: Azure OpenAI Configuration | ||
|
||
If you are not using OpenAI's models, but other model providers, besides the general configuration above, also additional environment variables are required. | ||
|
||
Here is an example for [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models) configuration: | ||
|
||
```bash | ||
OPENAI_API_VERSION="2024-05-01-preview" # or whatever you are using | ||
AZURE_OPENAI_ENDPOINT="https://CHANGEMEN.openai.azure.com/" # change to the name of your deployment | ||
AZURE_OPENAI_API_KEY="[Your Key]" # change to your API key | ||
|
||
EMBEDDING="azure_openai:text-embedding-ada-002" # change to the deployment of your embedding model | ||
|
||
FAST_LLM="azure_openai:gpt-4o-mini" # change to the name of your deployment (not model-name) | ||
FAST_TOKEN_LIMIT=4000 | ||
|
||
SMART_LLM="azure_openai:gpt-4o" # change to the name of your deployment (not model-name) | ||
SMART_TOKEN_LIMIT=4000 | ||
|
||
RETRIEVER="bing" # if you are using Bing as your search engine (which is likely if you use Azure) | ||
BING_API_KEY="[Your Key]" | ||
``` | ||
|
||
For more details on what each variable does, you can check out the [GPTR Config Docs](https://docs.gptr.dev/docs/gpt-researcher/gptr/config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Supported LLMs | ||
|
||
The following LLMs are supported by GPTR. Please note that you'll need to install the relevant langchain package for each LLM. | ||
|
||
- openai | ||
- anthropic | ||
- azure_openai | ||
- cohere | ||
- google_vertexai | ||
- google_genai | ||
- fireworks | ||
- ollama | ||
- together | ||
- mistralai | ||
- huggingface | ||
- groq | ||
- bedrock | ||
- dashscope | ||
- xai | ||
- deepseek | ||
- litellm | ||
|
||
The GPTR LLM Module is built on top of the [Langchain LLM Module](https://python.langchain.com/v0.2/docs/integrations/llms/). | ||
|
||
If you'd like to add a new LLM into GPTR, you can start with the [langchain documentation](https://python.langchain.com/v0.2/docs/integrations/platforms/) and then look into integrating it into the GPTR LLM Module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.