Better HN
topnewbestaskshowjobs
Log inSign up

brulenaudet

63 karma · joined Oct 18, 2023 (3y ago) · 73 submissions

Research in business taxation and development (NLP, LLM, Computer vision...), University Dauphine-PSL | Backed by the Microsoft for Startups Hub program and Google Cloud Platform for startups
Submissions

1.

Show HN: A monorepo where AI agents can safely build and maintain applications(github.com ↗)

3 points · by brulenaudet · 4mo ago · 1 comment

comment 1y ago · link · parent

Hello everyone, wanting to have some fun this week, I created an API that allows you to easily access AI models (in this case, Google's) from the Shortcut app in order to analyze data from my apps and make the most of it thanks to the generative capabilities of advanced models.

It costs me nothing, and I think it might be good to share it so that others can build on it.

In README.md, you will find everything you need to get started and put your own microservice into production, which can be pinged from the application's HTTP request features.

You will simply be asked to have a free Cloudflare account and an API key obtained from Google's AI Studio.

Feel free to take a look and get back to me if you encounter any problems during deployment.

Here is the GitHub repo where you can find all the source code and run it by your own: https://github.com/louisbrulenaudet/genai-api

comment 1y ago · link · parent

Although more and more code editors are aligning themselves with the AGENTS.md file standard, some still use specific nomenclatures that can make it difficult to maintain different configuration files when several people are working on the same project with different agents.

Bodyboard addresses this by generating canonical instructions for code helpers from a single AGENTS.md file, thereby streamlining the production of adapter outputs for Gemini CLI, Copilot, Cline, Claude, Rules, Windsurf, and OpenAI Codex integrations.

It's a very simple project, but it addresses certain issues I've encountered, so why not make it available to everyone...

If you have other ideas for adapters to create, feel free to open a PR on the GitHub repo.

4.

Canonical instructions for coding assistants from a single AGENTS.md(npmjs.com ↗)

3 points · by brulenaudet · 1y ago · 1 comment

comment 1y ago · link · parent

Within a year, I had the opportunity to participate in hackathons organized by Mistral, OpenAI, and DeepMind. Leveraging this experience, I’ve created a boilerplate incorporating my feedback to streamline collaboration and urgent deployments.

This GitHub template is structured around several fundamental building blocks and recommendations I offer developers eager to participate in their first hackathon, whether as part of a team or individually. Its emphasis is on rapid setup and deployment through: - uv as a package manager, simplifying usage via a series of pre-configured make commands. - FastAPI for API management, structured in a modular architecture designed to minimize branch conflicts during merges to main branches (using minimal health-check and ping routes to verify Docker’s proper execution and backend accessibility on the local network). - Pydantic for validation and type handling, which simplifies debugging and enhances understanding of data objects. - A set of custom instructions tailored for agents (Cline and GitHub Copilot), aimed at improving overall comprehension of the application and optimizing the vibe-coding experience.

This template includes unit tests with a 100% success rate and test coverage, as well as a minimal CI file ensuring that the FastAPI application runs correctly. Thus, merging code that breaks the server into production becomes impossible.

In general, I would reiterate an essential piece of advice: your two main adversaries are branch conflicts—particularly when the same file is modified concurrently within a brief period, especially if your architecture isn’t built for scalability—and deployment issues under urgent circumstances (for instance, unstable Wi-Fi connections or complex infrastructure provided to you, which could hinder your associates from developing the frontend and successfully pinging the Python backend).

comment 1y ago · link · parent

I am excited to share Lemone-API, an open-source project designed to facilitate processing French tax law and enable embeddings computation.

The API is tailored to meet the specific demands of information retrieval and classification across large-scale tax-related corpora, supporting the implementation of production-ready Retrieval-Augmented Generation (RAG) applications. Its primary purpose is to enhance the efficiency and accuracy of legal processes in the French taxation domain, with an emphasis on delivering consistent performance in real-world settings. Additionally, it contributes to advancements in legal natural language processing research.

The project is licensed under the Apache-2.0 License, ensuring flexibility for both personal and commercial use.

For more details and to contribute to the project, please visit the GitHub repository: https://github.com/louisbrulenaudet/lemone-api

I welcome feedback, contributions, and discussions to enhance Lemone-API’s functionality and applicability.

comment 1y ago · link · parent

This agentic market analysis system is a Python-based framework that combines technical analysis with artificial intelligence to provide comprehensive market insights. At its core, the system implements a modular architecture that seamlessly integrates statistical analysis methods with natural language processing capabilities.

The system's foundation is built upon two primary technical indicators: the Relative Strength Index (RSI) and Bollinger Bands. The RSI implementation provides momentum analysis through a configurable calculation window (default: 14 periods), employing dynamic gain/loss computation and rolling averages to measure the velocity and magnitude of price movements. This is complemented by a Bollinger Bands implementation that utilizes Simple Moving Averages (SMA) and dynamic standard deviation calculations to create adaptive volatility bands that automatically adjust to market conditions.

Market data acquisition is handled through an integration with the Alpaca API, providing access to historical price data across various timeframes. The system employs Polars for high-performance data manipulation, leveraging its columnar storage format and lazy evaluation capabilities to efficiently process large datasets.

The AI integration layer bridges technical analysis with natural language processing using the Qwen2.5-72B-Instruct model via the Hugging Face API. This enables sophisticated market analysis by combining traditional technical indicators with real-time news sentiment analysis through DuckDuckGo search integration.

comment 1y ago · link · parent

I’ve just released logfire-callback on PyPI, designed to facilitate monitoring of Hugging Face Transformer training loops using Pydantic Logfire

The callback will automatically log training start with configuration parameters, periodic metrics and training completion

Install the package using pip:

pip install logfire-callback

First, ensure you have a Logfire API token and set it as an environment variable:

export LOGFIRE_TOKEN=your_logfire_token

Then use the callback in your training code:

from transformers import Trainer, TrainingArguments from logfire_callback import LogfireCallback

# Initialize your model, dataset, etc.

training_args = TrainingArguments( output_dir="./results", num_train_epochs=3, # ... other training arguments )

trainer = Trainer( model=model, args=training_args, train_dataset=train_dataset, callbacks=[LogfireCallback()] # Add the Logfire callback here )

trainer.train()

comment 2y ago · link · parent

My biggest release of the year: a series of 7 specialized embedding models for information retrieval within tax documents, is now available for free on @huggingface

These new models aim to offer an open-source alternative for in-domain semantic search from large text corpora and will improve RAG systems and context addition for large language models.

Trained on more than 43 million tax tokens derived from semi-synthetic and raw-synthetic data, enriched by various methods (in particular MSFT's evol-instruct by @WizardLM_AI), and corrected by humans, this project is the fruit of hundreds of hours of work and is the culmination of a global effort to open up legal technologies that has only just begun.

A big thank you to @microsoftfrance for giving me access to state-of-the-art infrastructure to train these models, and to @julien_c, @ClemDelangue , @Thom_Wolf and the whole HF team for the inference endpoint API and the generous provision of @AIatMeta LLama-3.1-70B. Special thanks also to @tomaarsen for his invaluable advice on training embedding models and Loss functions

comment 2y ago · link · parent

The Romulus model series has been released on Hugging Face, continually pre-trained on 34,864,949 tokens of French laws and intended to serve as a foundation for fine-tuning on labeled data

The training code, dataset and model weights are open and available free on HF and the training was based on H100 provided by Microsoft for Startups using Unsloth AI by @danielhanchen and @shimmyshimmer

Link to the base mode: louisbrulenaudet/Romulus-cpt-Llama-3.1-8B-v0.1

Link to the instruct model: louisbrulenaudet/Romulus-cpt-Llama-3.1-8B-v0.1-Instruct

Link to the dataset: louisbrulenaudet/Romulus-cpt-fr

Please note that these models have not been aligned for the production of usable texts as they stand, and will certainly need to be refined for the desired tasks in order to produce satisfactory results.

11.

The Romulus model series has been released on Hugging Face(huggingface.co ↗)

1 points · by brulenaudet · 2y ago · 1 comment

comment 2y ago · link · parent

RAGoon is a set of NLP utilities for multi-model embedding production, high-dimensional vector visualization, and aims to improve language model performance by providing contextually relevant information through search-based querying, web scraping and data augmentation techniques.

Link to GitHub: https://github.com/louisbrulenaudet/ragoon Link to Hugging Face Space: https://huggingface.co/spaces/louisbrulenaudet/ragoon

Here is an example of code to produce Embeddings for a given list of models: ```python from ragoon import EmbeddingsDataLoader from datasets import load_dataset

# Initialize the dataset loader with multiple models loader = EmbeddingsDataLoader( token="hf_token", dataset=load_dataset("louisbrulenaudet/dac6-instruct", split="train"), # If dataset is already loaded. # dataset_name="louisbrulenaudet/dac6-instruct", # If you want to load the dataset from the class. model_configs=[ {"model": "bert-base-uncased", "query_prefix": "Query:"}, {"model": "distilbert-base-uncased", "query_prefix": "Query:"} # Add more model configurations as needed ] )

# Uncomment this line if passing dataset_name instead of dataset. # loader.load_dataset()

# Process the splits with all models loaded loader.process( column="output", preload_models=True )

# To access the processed dataset processed_dataset = loader.get_dataset() ```

In particularly, this tool also provides the functionality to load embeddings from a FAISS index, reduce their dimensionality using PCA and/or t-SNE, and visualize them in an interactive 3D graph.

13.

RAGoon is now available on PyPI, and on HF for batched embeddings generation(github.com ↗)

1 points · by brulenaudet · 2y ago · 1 comment

comment 2y ago · link · parent

You can now find the OBIS - Ocean Biodiversity Information System, on Hugging Face with 128M rows, via the Datasets package stream

The datasets are integrated, allowing seamless search and mapping by species name, higher taxonomic level, geographic area, depth, time, and environmental parameters. OBIS originates from the Census of Marine Life (2000-2010) and was adopted as a project under IOC-UNESCO’s International Oceanographic Data and Information (IODE) programme in 2009.

Collectively, they have provided over 45 million observations of nearly 120,000 marine species, ranging from bacteria to whales, from the surface to 10,900 meters depth, and from the tropics to the poles.

15.

Ocean Biodiversity Information System on Hugging Face(huggingface.co ↗)

2 points · by brulenaudet · 2y ago · 1 comment

comment 2y ago · link · parent

Announcing the creation of the "HF for Legal" organization on Hugging Face, an open-source community dedicated to demystifying language models for legal professionals

Whether you're a practicing attorney, a legal scholar, or a technologist interested in legal applications of AI, HF for Legal may be your hub for exploration, learning, and free innovation

On the occasion of this launch, you'll be able to find several notebooks I've been developing over the last few months for TSDAE pre-training of embedding models, the generation of indexes for semantic search adapted to the field of French law, or the addition of information retrieval tasks to the MTEB.

Join us in our mission to make AI more accessible and understandable for the legal world, ensuring that the power of language models can be harnessed effectively and ethically.

Special thanks to Clément for encouraging me to start this organization. Let's hope we can bring together all the enthusiasts who work in this field.

Let's code and share together!

17.

HF for Legal, an open-source community on Hugging Face(huggingface.co ↗)

3 points · by brulenaudet · 2y ago · 1 comment

comment 2y ago · link · parent

I am delighted to announce the publication of the LegalKit, a French labeled dataset built for legal ML training

This dataset comprises multiple query-document pairs (+50k) curated for training sentence embedding models within the domain of French law.

The labeling process follows a systematic approach to ensure consistency and relevance: - Initial Query Generation: Three instances of the LLaMA-3-70B model independently generate three different queries based on the same document. - Selection of Optimal Query: A fourth instance of the LLaMA-3-70B model, using a dedicated selection prompt, evaluates the generated queries and selects the most suitable one. - Final Label Assignment: The chosen query is used to label the document, aiming to ensure that the label accurately reflects the content and context of the original text.

19.

LegalKit, French labeled datasets built for legal ML training(huggingface.co ↗)

3 points · by brulenaudet · 2y ago · 1 comment

comment 2y ago · link · parent

The Gen-Selective Pseudo Labeler (GSPL) is a tool designed to generate multiple queries about the same document and apply selection techniques using transformers. It leverages large language models (LLMs) to function as a judge, enhancing the labeling process through advanced completion and selection methods. This project is particularly useful in scenarios where multi-query generation and selection are required to improve the quality and relevance of labeled data.

21.

Gen-Selective Pseudo Labeling, Based on Datasets and Serverless Inference API(github.com ↗)

1 points · by brulenaudet · 2y ago · 2 comments

comment 2y ago · link · parent

The Add-on is now available on the HF repo "Journalists on Hugging Face" and allows rapid generation of synthetic data, automatic translation, answering questions and more from simple spreadsheet cells

Link to the Space : JournalistsonHF/huggingface-on-sheets

Although this tool was initially developed for journalists, it actually finds a much wider inking among daily users of the Google suite and the remaining use cases to be explored are numerous.

Only a free Hugging Face API key is required to start using this no-code extension.

Do not hesitate to submit ideas for features that we could add!

23.

Mixtral or Llama 70B on Google Spreadsheet Thanks to Hugging Face's API(huggingface.co ↗)

1 points · by brulenaudet · 2y ago · 1 comment

comment 2y ago · link · parent

RAGoon is a Python library that aims to improve the performance of language models by providing contextually relevant information through retrieval-based querying, web scraping, and data augmentation techniques. It offers an integration of various APIs, enabling users to retrieve information from the web, enrich it with domain-specific knowledge, and feed it to language models for more informed responses.

RAGoon's core functionality revolves around the concept of few-shot learning, where language models are provided with a small set of high-quality examples to enhance their understanding and generate more accurate outputs. By curating and retrieving relevant data from the web, RAGoon equips language models with the necessary context and knowledge to tackle complex queries and generate insightful responses.

Link to the GitHub : https://github.com/louisbrulenaudet/ragoon

Here's an example of how to use RAGoon:

from groq import Groq # from openai import OpenAI from ragoon import RAGoon

# Initialize RAGoon instance ragoon = RAGoon( google_api_key="your_google_api_key", google_cx="your_google_cx", completion_client=Groq(api_key="your_groq_api_key") )

# Search and get results query = "I want to do a left join in python polars" results = ragoon.search( query=query, completion_model="Llama3-70b-8192", max_tokens=512, temperature=1, )

# Print results print(results)

123