-
Notifications
You must be signed in to change notification settings - Fork 8
DOC-790 | Importer & Retriever: Update startup parameters #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Deploy Preview Available Via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! minor comment about including embedding_api_provider
| "openrouter_model": "mistralai/mistral-nemo" // Specify a model here | ||
| "chat_api_provider": "openai", | ||
| "embedding_api_provider": "openai", | ||
| "chat_api_url": "https://openrouter.ai/api/v1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine - since setting openai as the provider means that we just use the OpenAI() client to interact with the OpenRouter URL, which is OpenAI-compatible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a couple of comments.
|
IMHO: It would be great if we could provide short documentation on how to create a project in genai-service. Create a New Project Endpoint: POST /v1/project Validation: The name must be 1–63 characters long and can only contain letters, numbers, underscores, and hyphens. Request Body: json json WDYT? |
@bluepal-pavan-kothapalli There is a section on how to create a new project, in |
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on November 28. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
…oject creation; move and extend Projects
|
@diegomendez40 @bluepal-pavan-kothapalli FYI changes from my two latest commits:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work, @nerpaula. Unfortunately, I have found a number of possible enhancements and corrections.
While I added most of them to the 3.12 folder, they do also apply to 3.13.
| ## Using Profiles in Creation Request Body | ||
| ### Creating a project | ||
|
|
||
| To create a new GraphRAG project, send a POST request to the project endpoint: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably makes sense to mention that only 3 services require a project:
- Importer
- Retrievers
- VirtualGraph (but that's not part of this release as of today, will follow very soon)
https://github.com/arangoml/GenAI-Service/blob/main/gen_ai/naming.py#L26-L29
| - `triton_model`: Name of the LLM model to use for text processing. | ||
|
|
||
| ### Using OpenAI (Public LLM) | ||
| ### Using OpenAI for chat and embedding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"openai" doesn't stand for OpenAI, but rather for any OpenAI-compatible API, including essentially any large LLM provider: OpenRouter, Gemini, Anthropic, corporate LLMs, etc.
The URL can point to the relevant non-OpenAI endpoint, even if it is served via an OpenAI-compatible API.
| {{< /info >}} | ||
|
|
||
| ### Using OpenRouter (Gemini, Anthropic, etc.) | ||
| ### Using OpenRouter for chat and OpenAI for embedding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not just OpenRouter. It's literally any OpenAI compatible API.
| - **Instant search**: Focuses on specific entities and their relationships, ideal | ||
| for fast queries about particular concepts. | ||
| - **Deep search**: Analyzes the knowledge graph structure to identify themes and patterns, | ||
| perfect for comprehensive insights and detailed summaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, these definitions are incorrect. These are the definitions for global and local. However, I had already provided the relevant definitions for instant vs. deep search, which can be used here.
| Deep Search is designed for highly detailed, accurate responses that require understanding | ||
| what kind of information is available in different parts of the knowledge graph and | ||
| sequentially retrieving information in an LLM-guided research process. Use whenever | ||
| detail and accuracy are required (e.g. aggregation of highly technical details) and | ||
| very short latency is not (i.e. caching responses for frequently asked questions, | ||
| or use case with agents or research use cases). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
| The request parameters are the following: | ||
| - `query`: Your search query text. | ||
| - `level`: The community hierarchy level to use for the search (`1` for top-level communities). | ||
| - `level`: The community hierarchy level to use for the search (`1` for top-level communities). Defaults to `2` if not provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need the 'level' parameter. That's for global queries.
| - `1`: Global search. | ||
| - `2`: Local search. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global and local queries still exist. They are supported.
The fact that we don't use them on the UI doesn't mean they can't be used by experts.
| - `UNIFIED`: Instant search. | ||
| - `LOCAL`: Deep search. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't exactly right.
Local with no LLM planner is the typical local query.
Local with LLM planner is Deep Search.
| {{< /info >}} | ||
|
|
||
| ### Using OpenRouter (Gemini, Anthropic, etc.) | ||
| ### Using OpenRouter for chat and OpenAI for embedding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, this should mention any OpenAI compatible API, not just OpenRouter
| - **Instant search**: Focuses on specific entities and their relationships, ideal | ||
| for fast queries about particular concepts. | ||
| - **Deep search**: Analyzes the knowledge graph structure to identify themes and patterns, | ||
| perfect for comprehensive insights and detailed summaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All changes above (on 3.12) should be replicated for 3.13.
Description
Importer & Retriever: Update startup parameters., including descriptions and parameters for instant and deep search.
TO DO: