Core interfaces for hybrid search implementations (CUDA version)
Project description
RAG Server package
Depends on the just-agents package
This package also has some features which are specific for Just-Chat integration.
It allows easier index for markdown files.
- Indexing papers
For indexing what you have to do is run
poetry shell
index_markdown <path_to_markdown_folder> -i <index_name>
this will index all markdown files in the folder and create a Meilisearch index. It will all be indexed in the location where you gave the input files from. NOTE: this is run here, in the just-semantic-search folder but can have targets outside of this folder, for example in other projects.
- Searching indexed papers
First off- searching is mostly done in the project you are working on. Meaning that the primary usecase is for the user to import the libary.
2.1. Just-Agents have you should configure a web_agent in your agent_profiles.yaml.
You can either user meilisearch separately from just-chat or you can extend the just-chat docker-compose.yml file with the following meilisearch service.
meilisearch:
container_name: meilisearch
image: getmeili/meilisearch:v1.13.0
environment:
- http_proxy
- https_proxy
- MEILI_MASTER_KEY=fancy_master_key
- MEILI_NO_ANALYTICS=${MEILI_NO_ANALYTICS:-true}
- MEILI_ENV=${MEILI_ENV:-development}
- MEILI_LOG_LEVEL
- MEILI_DB_PATH=${MEILI_DB_PATH:-/data.ms}
- MEILI_EXPERIMENTAL_ENABLE_METRICS=true
- MEILI_EXPERIMENTAL_ENABLE_VECTORS=true
ports:
- ${MEILI_PORT:-7700}:7700
volumes:
- ./data.ms:/data.ms
restart: unless-stopped
2.2. in requirements.txt you have to add just-semantic-search-meili
2.3. in agent_profiles.yaml you have to add the following tools for the agent you want to use it
- package: "just_semantic_search.meili.tools"
function: "search_documents"
This will allow the agent to use the search_documents function from the just_semantic_search.meili.tools package. Also, given you have indexed the papers in this project, the only part from the libary you will use is the search_documents function.
2.4. run
docker compose up
and querry the agent so that it will have to search your indexed papers
NOTE: to check things before you run the agent you can first check port 0.0.0.0:7700 to see if the meilisearch is running. -key is fancy_master_key
There you should be able to see whether meilisearch is running and if there are indexes created.
Following text explains more in details how this library works and it is structured
Project details
Release history Release notifications | RSS feed
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 just_semantic_search_server_cuda-0.4.8.tar.gz.
File metadata
- Download URL: just_semantic_search_server_cuda-0.4.8.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a9ffd1c8739f02a923b760b87c0b49f868d6bf9b03eeed865e9adc21c308763
|
|
| MD5 |
f3cfa3601dc1e672ccac16e1d629c717
|
|
| BLAKE2b-256 |
55af1903f245164d5113966973360f8088fd73fbd0283ecb0fffcc276fca03a4
|
File details
Details for the file just_semantic_search_server_cuda-0.4.8-py3-none-any.whl.
File metadata
- Download URL: just_semantic_search_server_cuda-0.4.8-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fddc16a70c66d4b7032c42e6bbe1259087acea207ccfc310552155a6ac72733d
|
|
| MD5 |
ad98f9d4b13575b9496b4254e1e9d4ab
|
|
| BLAKE2b-256 |
f6f5ef65971c5f06cc6f963853059563a5bbc4b8330dcd3aea0b342a30123805
|