semvec/pypi-packages huggingface dataset:
bm25-retriever 0.3
A persistent implementation of BM25 retrieval.
Requires Python: >=3.7

# bm25_retriever

`bm25_retriever` is a persistent BM25 retriever for use with LangChain, built on top of `rank_bm25`.

## Features

- Save and load BM25 retriever to/from disk
- Easily integrate with LangChain `Document` format
- Simple API for creating, persisting, and querying retrievers

## Installation

```bash
pip install bm25_retriever
```

## Usage
```python
from langchain_core.documents import Document
from bm25_retriever.retriever import PersistentBM25Retriever

# Sample documents
docs = [
    Document(page_content="The quick brown fox jumps over the lazy dog"),
    Document(page_content="A fox fled from danger"),
    Document(page_content="Dogs are loyal companions"),
    Document(page_content="Foxes are cunning and agile"),
]

# Step 1: Create a retriever with a specified save directory
save_directory = "bm25_storage"
retriever = PersistentBM25Retriever(documents=docs, save_dir=save_directory, persist=True)
# Step 2: Persist the retriever to the specified directory
# retriever.persist()

# Step 3: Load the retriever from the directory with a custom k value
loaded_retriever = PersistentBM25Retriever.from_persist_dir(save_dir=save_directory, k=3)

# Step 4: Use the loaded retriever to retrieve documents
query = "fox"
results = loaded_retriever.get_relevant_documents(query)

# Print the retrieved documents
print(f"Retrieved {len(results)} documents for query '{query}':")
for i, doc in enumerate(results, 1):
    print(f"{i}. {doc.page_content}")
```
persistent-bm25-v2 1.0.1
A persistent implementation of BM25 retrieval.
Requires Python: >=3.7

# persistent_bm25

persistent_bm25 is a Python package that provides a persistent implementation of BM25 retrieval.

## Installation

You can install it via pip:

```bash
pip install persistent_bm25
```


## Usage

```python
from persistent_bm25 import PersistentBM25Retriever
from langchain_core.documents import Document
docs = [
    Document(page_content="LangChain makes AI powerful"),
    Document(page_content="BM25 is a ranking function for search"),
]

# Create retriever
bm25_retriever = PersistentBM25Retriever.from_documents(docs)
bm25_retriever.persist("./bm25_retriever")

loaded_bm25_retriever = PersistentBM25Retriever.from_persist_dir("./bm25_retriever")

results = loaded_bm25_retriever.get_relevant_documents("AI search")
print(results)
```
Higwind0-sys-bank 3.0.1
Sistema bancário simples em Python usando POO
Requires Python: >=3.8

# Sistema Bancário V3 (POO em Python)

Este é um projeto simples de sistema bancário orientado a objetos em Python. Permite realizar:

- Cadastro de clientes
- Abertura e exclusão de contas
- Depósitos, saques e extratos

## Como usar

1. Clone o repositório
2. Rode `main.py` com `python main.py`
3. Interaja com o menu no terminal

## Estrutura

Cada funcionalidade foi separada em módulos para facilitar o entendimento da POO.

## Requisitos

- Python 3.10+

## IMPORTANTE

- Até onde eu consegui testar estava funcionando.
- Se faltou alguma coisa é culpa do PO que não descreveu as histórias corretamente.
- Se subir para HML e der problema a culpa é do time de QA.
- To saindo de férias, qualquer coisa o Felipe resolve por mim.