Giter Club home page Giter Club logo

Comments (3)

josStorer avatar josStorer commented on August 28, 2024

目前长视频的总结模式是, 保留开头结尾, 对中间部分按比例裁切, 保证在一定token范围内, 以期望保留视频整体大意
核心逻辑见: https://github.com/josStorer/chatGPTBox/blob/master/src/utils/crop-text.mjs

分段总结是可行的, 但会导致某些长视频消耗大量token, 并且每个片段将使用独立上下文, 导致难以与其他片段关联, 目前这个功能优先级不高, 并且不一定会支持, 如果有好的想法可以在这个issue下讨论

from chatgptbox.

DIYer22 avatar DIYer22 commented on August 28, 2024

怪不得, 没法基于视频问答. 我觉得可以设置一个选项, 节约模式和性能模式, 或者(概览/完全), 放在视频问答窗口的按钮, 让用户自己选择. 或者在设置界面新增单个视频最长 token 长度的设置, 根据设置长度来截取字幕

对于有 API key 用户, 额度多得消耗不完, 想要性能模式.

from chatgptbox.

ssyzyg avatar ssyzyg commented on August 28, 2024

对于长视频,一种简单的做法可以是拆分视频/文本长度,比如每5分钟做摘要,然后对各个摘要汇总做二次摘要,实测下来也可以达到要求,而且也可输出分段摘要。

from chatgptbox.

Related Issues (20)

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.