Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Tailoring nanoscale interfaces for perovskite–perovskite–silicon triple-junction solar cells

    October 13, 2025

    SGLA criticizes California Governor Newsom for signing ‘flawed, rushed’ sweepstakes ban

    October 13, 2025

    Gesture Recognition for Busy Hands

    October 13, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»Artificial Intelligence»Posit AI Blog: mall 0.2.0
    Artificial Intelligence

    Posit AI Blog: mall 0.2.0

    big tee tech hubBy big tee tech hubAugust 21, 20250594 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    Posit AI Blog: mall 0.2.0
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    mall uses Large Language Models (LLM) to run
    Natural Language Processing (NLP) operations against your data. This package
    is available for both R, and Python. Version 0.2.0 has been released to
    CRAN and
    PyPi respectively.

    In R, you can install the latest version with:

    In Python, with:

    This release expands the number of LLM providers you can use with mall. Also,
    in Python it introduces the option to run the NLP operations over string vectors,
    and in R, it enables support for ‘parallelized’ requests.

    It is also very exciting to announce a brand new cheatsheet for this package. It
    is available in print (PDF) and HTML format!

    More LLM providers

    The biggest highlight of this release is the the ability to use external LLM
    providers such as OpenAI, Gemini
    and Anthropic. Instead of writing integration for
    each provider one by one, mall uses specialized integration packages to act as
    intermediates.

    In R, mall uses the ellmer package
    to integrate with a variety of LLM providers.
    To access the new feature, first create a chat connection, and then pass that
    connection to llm_use(). Here is an example of connecting and using OpenAI:

    install.packages("ellmer")
    
    library(mall)
    library(ellmer)
    
    chat <- chat_openai()
    #> Using model = "gpt-4.1".
    
    llm_use(chat, .cache = "_my_cache")
    #> 
    #> ── mall session object 
    #> Backend: ellmerLLM session: model:gpt-4.1R session: cache_folder:_my_cache

    In Python, mall uses chatlas as
    the integration point with the LLM. chatlas also integrates with
    several LLM providers.
    To use, first instantiate a chatlas chat connection class, and then pass that
    to the Polars data frame via the .llm.use() function:

    pip install chatlas
    
    import mall
    from chatlas import ChatOpenAI
    
    chat = ChatOpenAI()
    
    data = mall.MallData
    reviews = data.reviews
    
    reviews.llm.use(chat)
    #> {'backend': 'chatlas', 'chat': 
    #> , '_cache': '_mall_cache'}

    Connecting mall to external LLM providers introduces a consideration of cost.
    Most providers charge for the use of their API, so there is a potential that a
    large table, with long texts, could be an expensive operation.

    Parallel requests (R only)

    A new feature introduced in ellmer 0.3.0
    enables the access to submit multiple prompts in parallel, rather than in sequence.
    This makes it faster, and potentially cheaper, to process a table. If the provider
    supports this feature, ellmer is able to leverage it via the
    parallel_chat()
    function. Gemini and OpenAI support the feature.

    In the new release of mall, the integration with ellmer has been specially
    written to take advantage of parallel chat. The internals have been re-written to
    submit the NLP-specific instructions as a system message in order
    reduce the size of each prompt. Additionally, the cache system has also been
    re-tooled to support batched requests.

    NLP operations without a table

    Since its initial version, mall has provided the ability for R users to perform
    the NLP operations over a string vector, in other words, without needing a table.
    Starting with the new release, mall also provides this same functionality
    in its Python version.

    mall can process vectors contained in a list object. To use, initialize a
    new LLMVec class object with either an Ollama model, or a chatlas Chat
    object, and then access the same NLP functions as the Polars extension.

    # Initialize a Chat object
    from chatlas import ChatOllama
    chat = ChatOllama(model = "llama3.2")
    
    # Pass it to a new LLMVec
    from mall import LLMVec
    llm = LLMVec(chat)    

    Access the functions via the new LLMVec object, and pass the text to be processed.

    llm.sentiment(["I am happy", "I am sad"])
    #> ['positive', 'negative']
    
    llm.translate(["Este es el mejor dia!"], "english")
    #> ['This is the best day!']

    For more information visit the reference page: LLMVec

    New cheatsheet

    The brand new official cheatsheet is now available from Posit:
    Natural Language processing using LLMs in R/Python.
    Its mean feature is that one side of the page is dedicated to the R version,
    and the other side of the page to the Python version.

    cheatsheet

    An web page version is also availabe in the official cheatsheet site
    here. It takes
    advantage of the tab feature that lets you select between R and Python
    explanations and examples.

    html cheatsheet

    Enjoy this blog? Get notified of new posts by email:

    Posts also available at r-bloggers



    Source link

    0.2.0 Blog mall Posit
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    Posit AI Blog: Introducing the text package

    October 12, 2025

    Data Reliability Explained | Databricks Blog

    October 12, 2025

    Building connected data ecosystems for AI at scale

    October 11, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Tailoring nanoscale interfaces for perovskite–perovskite–silicon triple-junction solar cells

    October 13, 2025

    SGLA criticizes California Governor Newsom for signing ‘flawed, rushed’ sweepstakes ban

    October 13, 2025

    Gesture Recognition for Busy Hands

    October 13, 2025

    Inside the ‘Let’s Break It Down’ Series for Network Newbies

    October 13, 2025
    Advertisement
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Tailoring nanoscale interfaces for perovskite–perovskite–silicon triple-junction solar cells

    October 13, 2025

    SGLA criticizes California Governor Newsom for signing ‘flawed, rushed’ sweepstakes ban

    October 13, 2025

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2025 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.