GithubHelp home page GithubHelp logo

xuwx66 / async_summarize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wolfsauge/async_summarize

0.0 0.0 0.0 1008 KB

An asynchronous summarization script.

License: MIT License

Python 100.00%

async_summarize's Introduction

async_summarize

An asynchronous summarization script.

This script summarizes the input file using a large language model API. If the input exceeds the context of the LLM, it will be split using semantic-text-splitter.

Note

The documentation needs rework ...

Example call

$ ./main.py -u http://localhost:8000/v1 \
    -p prompt-mistral_instruct_v0.2.yaml \
    -f mobydick.txt

Example result

In Herman Melville's "Moby-Dick," Ishmael and Queequeg embark on a whaling voyage, sharing a bond as they face the challenges of the journey. Upon reaching Nantucket, they join the crew of the Pequod, led by Captain Ahab, who is notoriously obsessed with hunting the white whale, Moby-Dick. Ahab offers a gold piece to the first one who harpoons the white whale, but Starbuck, the first mate, expresses reluctance due to Ahab's personal vengeance.

As they set sail, the crew experiences the thrill and danger of whale hunting during the first lowering for a sperm whale. The text emphasizes the camaraderie among the crew and the awe-inspiring nature of the chase. Superstitions and beliefs surrounding the whale's appearance come to the forefront, with the mysterious Fedallah playing a role on the ship. The text also discusses the bond between Ishmael and Queequeg, exploring themes of respect for different beliefs, the importance of staying true to one's course, and the obsession that drives Ahab's quest for revenge.

The text describes various representations of whales throughout history, from ancient sculptures to scientific illustrations, and reflects on the inaccuracies and limitations of these depictions. The author argues that the true form of the whale can only be seen at sea and cannot be accurately captured in a portrait. The text mentions several inaccurate depictions, including those in old Hindu sculpture, European paintings, and scientific books. The skeleton of a whale does not provide an accurate representation of its living form.

The chapter also includes a description of the sighting of a giant squid and the use of whale-lines in whaling. The author emphasizes the danger and complexity of the whale-line, which envelops the entire boat and puts the crew in peril. The text concludes by reflecting on the inherent dangers and mysteries of life and the calm before the storm. The awe-inspiring and terrifying nature of the sea and its creatures is compared to the savagery of a whale hunter and the wonder of a Hawaiian war-club.

async_summarize's People

Contributors

wolfsauge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.