Add your description here
Project description
Welcome to QueryPipZ
应该如何使用该仓库
1 合理的维护所有的factory 工厂 例如 docstore, vectorstore, graphstore
2 构建并存续特异化的builderlib
3 注册到director 中的 buildtype中
1 初始化 build
在第一次使用的时候,需要初始化, 如果定义了reader 则text 是否传入均可 如果没有定义reader 则 比如传入text
from querypipz import BuilderFactory,BuilderType,Director
dirs = Director(BuilderFactory(BuilderType.CHAT_HISTORY_MEMORY_BUILDER))
query = dirs.construct()
text = """
user: hello
assistant: Hello! How can I assist you today?
user: 你在说什么?
assistant: 你好!我可以帮你做些什么呢?
user: 考虑一下
assistant: 你能具体说明一下需要我考虑什么吗?
user: 考虑一下做一个皮卡丘
assistant: 你是想让我考虑做一个皮卡丘的什么呢?是画一个皮卡丘,还是制作一个皮卡丘模型,或者其他什么呢?请告诉我更多细节。
user: 让我想想
"""
query.build(text = text,cover= True)
2 初始化构建过以后, 直接update上传
from querypipz import BuilderFactory,BuilderType,Director
dirs = Director(BuilderFactory(BuilderType.CHAT_HISTORY_MEMORY_BUILDER))
query = dirs.construct()
text = """
user: 再一次hello
assistant: Hello! How can I assist you today?
user: 你在说什么?
assistant: 你好!我可以帮你做些什么呢?
user: 考虑一下
assistant: 你能具体说明一下需要我考虑什么吗?
user: 考虑一下做一个皮卡丘
assistant: 你是想让我考虑做一个皮卡丘的什么呢?是画一个皮卡丘,还是制作一个皮卡丘模型,或者其他什么呢?请告诉我更多细节。
user: 让我想想
"""
query.update(prompt = text)
直接调取retriver 和query 不需要初始化
retriver
query.retrieve_search('hello')
query
query.query('hello')
tools
query.tools('kv.html')
querypipz
我们的任务就是要构建一个在query 之前, 甚至在chat 之前的所有动作的包
应该如何使用该仓库
1 合理的维护所有的factory 工厂 例如 docstore, vectorstore, graphstore
2 构建并存续特异化的builderlib
3 注册到director 中的 buildtype中
""" VectorStore from document from vectorstore 内有数据 √(创建时会存储) √(及时存储) 内无数据 √ √(需要以创建) """
0-1 query pipeline 1 多模态 2
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llamahelper-0.1.6.tar.gz.
File metadata
- Download URL: llamahelper-0.1.6.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ac823132debf4d71349c122881f618e4621e919af35452103d76a3e5c2b8f66
|
|
| MD5 |
2c163160debc5839a55255fe428100cc
|
|
| BLAKE2b-256 |
fc56f6d8a10ef905803c96e8955b77eda77e116d1a56700ec897af1e68e01377
|
File details
Details for the file llamahelper-0.1.6-py3-none-any.whl.
File metadata
- Download URL: llamahelper-0.1.6-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e18eab6fda5fcb45589623f173feba9bf77eb49dafeb96673af1d7cac21556f
|
|
| MD5 |
2ad54acf6c0bd32c8d794348ea32f402
|
|
| BLAKE2b-256 |
7f9a9e7f1f5daeb7b232c3f7fddc612fd874cc91ea72c4e82292ce1e85be9e5d
|