-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We need to be able to track the usage of clients for measuring adoption and impact. The `CLIENT SETINFO` command can be used for this purpose. The required string format is documented [here](https://redis.io/docs/latest/commands/client-setinfo/#:~:text=The%20CLIENT%20SETINFO%20command%20assigns,CLIENT%20LIST%20and%20CLIENT%20INFO%20). ### Variants - Standalone RedisVL: ``` CLIENT SETINFO LIB-NAME redis-py(redisvl_v0.2.0) CLIENT SETINFO LIB-VER 5.0.4 ``` - Abstraction layers (like LlamaIndex or LangChain): ``` CLIENT SETINFO LIB-NAME redis-py(redisvl_v0.2.0;llama-index-vector-stores-redis_v0.1.0) CLIENT SETINFO LIB-VER 5.0.4 ``` ### Constraints - RedisVL uses both Async connection and standard connection instances from Redis Py - So the technique to run this command needs to properly handle this... - Other wrappers around RedisVL like LangChain and LlamaIndex will need to pass through their lib_name - These libraries generally support the notion of providing your own client instance OR providing the connection string and performing the connection on your behalf -- which also adds some difficulty. ### Planned Route In order to build the proper name string, all clients that wrap redis-py will need to use the following format: ``` {package-name}_v{version} ``` RedisVL will implement the default which is `redisvl_v0.x.x`, but outer wrappers of RedisVL can implement their own by using a lib_name `kwarg` on the index class like ``` SearchIndex(lib_name="langchain_v0.2.1") ```
- Loading branch information
1 parent
c4e3017
commit 934d269
Showing
5 changed files
with
173 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ scratch | |
wiki_schema.yaml | ||
docs/_build/ | ||
.venv | ||
.env | ||
coverage.xml | ||
dist/ |
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