Repository navigation
Send X-Weaviate-Client-Integration header to Weaviate - #322
Open
dudanogueira wants to merge 1 commit into
Open
dudanogueira wants to merge 1 commit into
dudanogueira wants to merge 1 commit into
Conversation
Weaviate 1.38+ reads this header as {name}/{version} to attribute
traffic to the integration that sent it. Add llmstack/<version> (from
package metadata, "unknown" when unavailable) to the headers of every
Weaviate client LLMStack creates, so it reaches REST requests and gRPC
metadata. A header supplied by the user is kept as is.
|
@dudanogueira is attempting to deploy a commit to the LLMStack Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Weaviate 1.38+ reads the
X-Weaviate-Client-Integrationrequest header, formatted{name}/{version}, to attribute traffic to the integration that sent it. Other integrations already send it: crewAI sendscrewai-tools/<version>, Difydify/<version>, Haystackhaystack-python/<version>. Older Weaviate versions ignore the header.What changed
llmstack/processors/providers/weaviate: newwith_integration_header()helper. It addsllmstack/<version>, using the installed package version andunknownwhen that isn't available._create_weaviate_client(the datasource vector store) and the legacycommon/blocksWeaviate store pass their headers through the helper. Because the header is part of the client's headers at construction, it is sent on every REST request and in the gRPC metadata.unknown.How tested
Against Weaviate 1.39.13 with weaviate-client 4.7.1, captured outgoing traffic:
/v1/meta, and the gRPC metadata carryX-Weaviate-Client-Integration: llmstack/<version>Note: the Docker image installs dependencies with
--no-root, so containers reportllmstack/unknownuntil the package itself is installed in the image.