注册并分享邀请链接,可获得视频播放与邀请奖励。

与「GRAM」相关的搜索结果

GRAM 贴吧
一个关键词就是一个贴吧,路径全站唯一。
创建贴吧
用户
未找到
包含 GRAM 的内容
Agent 最缺的不是更大的上下文窗口,而是理解整个代码库的能力:当一个项目有数万文件、跨模块调用和海量文档时,为什么还要让 AI 一遍遍 Grep、Read、重新理解整个工程? 📦 项目档案 项目:Graphify-Labs/graphify GitHub Stars:⭐ 147299 技术栈:Python + Tree-sitter + NetworkX + Leiden 核心定位:将代码、文档、SQL Schema、PDF、图片及音视频转换成可查询、可追溯的知识图谱,让 AI Agent 从「搜索文件」升级为「理解工程关系」。 GitHub: 🛠️ 一、底层架构:不是传统 RAG,而是图结构知识引擎 Graphify 最值得研究的地方,是它没有走传统向量检索路线。 传统 RAG 通常需要经历: 文件切分 → Embedding → 向量入库 → 相似度检索 → 上下文拼接。 Graphify 直接构建 Graph。 底层采用 NetworkX 图数据结构,以 Node 和 Edge 表达工程实体及其关系。 整个处理链路可以概括为: detect() → extract() → build() → cluster() → analyze() → report() → export() 每个阶段职责独立,通过 Python Dict 和 NetworkX Graph 传递数据。 这意味着它不只是索引代码,而是在构建整个项目的结构化关系网络。 🛠️ 二、Tree-sitter AST:让代码解析摆脱 LLM 依赖 这是最有工程价值的设计。 Graphify 使用 Tree-sitter AST 解析约40种编程语言,提取: • Classes:类定义及结构。 • Functions:函数与方法。 • Imports:模块依赖关系。 • Call Graph:跨文件函数调用。 • SQL:表、视图、外键及 JOIN 关系。 其中33种语言使用 Tree-sitter Grammar,另外7种使用内置解析器。 关键在于:代码结构提取完全在本地完成,不需要调用 LLM,也不需要把代码上传到云端。 对于大型代码库,这种确定性解析比单纯依赖模型阅读文件更容易复现和追踪。 🛠️ 三、EXTRACTED / INFERRED:让每条知识关系都有证据 很多知识图谱最大的隐患是:模型推断出来的关系,很容易被误认为真实事实。 Graphify 给关系增加了置信度标签: • EXTRACTED:源码中明确存在的关系,例如 import、函数调用。 • INFERRED:通过上下文、命名和调用关系推断出来的连接。 • AMBIGUOUS:存在不确定性的关系,需要人工复核。 INFERRED 关系还会附带 0.0—1.0 的 confidence_score。 这套机制非常重要。 它实际上把知识图谱从一个简单的关联网络,变成了一个能够区分事实、推断与不确定性的工程知识系统。 🛠️ 四、Leiden + SHA256 Cache:解决规模与重复计算 Graphify 使用 Leiden 社区发现算法,根据节点之间的连接密度,将复杂工程拆分成不同功能子系统。 例如,一个大型后端项目,可以自动识别认证、数据库、路由、权限等不同社区。 同时,SHA256 内容哈希缓存会记录文件指纹。 文件没有变化,就跳过重复提取;只有新增或修改的文件才重新处理。 音视频还可以通过本地 faster-whisper 转录,再进入统一知识图谱。 这让增量更新不必每次重新扫描整个工程。 五、真正解决了什么工程问题? 想象一个场景: 你接手一个陌生的微服务项目,需要搞清楚: 用户认证最终连接了哪些数据库模块? 修改某个核心函数会影响哪些下游组件? 某个架构决策为什么会存在? 两个看似无关的模块究竟有什么隐藏依赖? 传统方式:Grep、Read、跳转、反复询问 Agent,消耗大量上下文。 Graphify:直接执行 query、path、explain。 它还能生成三个核心产物: • graph.json:完整知识图谱,可供后续查询。 • GRAPH_REPORT.md:核心节点、社区及关键关系分析。 • graph.html:可交互的可视化图谱。 甚至支持 Mermaid 调用链导出、Markdown Wiki 和 Obsidian 知识库。 最重要的设计思想是: 不要让 AI 每次都重新阅读整个世界,而是提前把世界组织成它能够理解和遍历的结构。 这才是 AI Coding 从上下文堆砌走向工程知识管理的重要一步。 对于大型 Monorepo、遗留系统维护、跨模块依赖分析,以及需要长期理解代码库的 Agent,这套架构尤其值得研究。 🔗 GitHub 开源地址:
显示更多
0
40
146
20
转发到社区
📍 Latin Grammy 2026
0
135
973
240
转发到社区
妈的!BizPeel MCP 简直就是营销宝藏,用自己来营销自己,递归了!
Crypto’s a sea of red. Only Gram is up +8%. No surprise there. It’s the only coin built into a real social ecosystem. Still ridiculously undervalued — it belongs in CMC’s top 3. One day it’ll get there.
显示更多
0
522
2K
298
转发到社区
India needs @Starlink 🇮🇳 • 11,256 of India’s listed villages still lacked 4G coverage as of May 2026. • India had 1.093 billion internet subscriptions in March 2026, but only 440.87 million were rural. Rural subscription density was 48.31 per 100 people, compared with 126.80 in urban India. • BharatNet had laid over 850,000 route-km of fibre and made about 221,000 Gram Panchayats service-ready. However, its Points of Presence were reported operational at only 80,472 Gram Panchayats in June 2026. • Only 4.26% of India’s internet subscriptions were wired connections in March 2026. Starlink could give underserved communities another route to high-speed broadband. • Starlink has already built 20 gateway sites in India, according to SpaceX Vice President of Starlink Business Operations Lauren Dreyer, speaking at India Mobile Congress today. • Starlink says it has developed India-specific security controls designed to keep Indian user data within India. • Its satellite network could bring high-speed internet to remote villages, mountains and islands where extending fibre or mobile networks is difficult. • Better connectivity could help rural schools access online learning, clinics offer remote consultations and small businesses reach more customers. Starlink already supports education and healthcare in remote communities internationally. • Portable Starlink terminals have supported disaster response around the world. They could give Indian emergency teams backup connectivity when floods, earthquakes or storms damage ground networks. • Direct to Cell could also help ordinary 4G phones connect beyond tower coverage, subject to Indian approvals and mobile operator partnerships. • The government itself identifies difficult terrain, low commercial viability and infrastructure constraints as reasons for remaining coverage gaps. This is exactly where Starlink could help India reach more people. • India should complete the remaining clearances and spectrum allocation so Starlink can begin commercial service. • SpaceX’s Vice President of Starlink Business Operations, Lauren Dreyer, said that Starlink is ready to help achieve Prime Minister Modi’s vision of 100% connectivity across India. She highlighted its potential to connect remote classrooms, support telemedicine and restore connectivity after disasters, adding, “With Starlink, people can get connected within minutes, not years.” India’s hardest-to-reach communities deserve reliable internet too.
显示更多
0
21
47
9
转发到社区
Dans 50 ans, les livres d'histoire diront qu'Elon Musk a gagné une guerre que personne ne savait qu'on était en train de perdre. Une guerre commencée il y a 100 ans, dans une cellule de prison italienne. En 1926, Mussolini fait arrêter un intellectuel sarde de 35 ans. Au procès, le procureur aurait dit : « Nous devons empêcher ce cerveau de fonctionner pendant vingt ans. » Il s'appelait Antonio Gramsci. Son cerveau n'a jamais cessé de fonctionner. En prison, il a rempli des milliers de pages qui sont devenues l'un des textes politiques les plus influents du XXe siècle. Je pense qu'on est en train de vivre le moment où sa théorie s'effondre. Laissez-moi vous expliquer. Gramsci se posait une question simple. Pourquoi la révolution communiste a-t-elle réussi en Russie mais échoué partout en Occident ? Sa réponse : en Occident, le pouvoir ne tient pas seulement par l'État, la police et l'armée. Il tient par la culture. Par ce que les gens trouvent normal, évident, « de bon sens ». Il appelle ça l'hégémonie culturelle. Donc, pour prendre le pouvoir, il ne faut pas d'abord prendre le palais. Il faut d'abord prendre les esprits. Les écoles. Les universités. Les journaux. Le théâtre. L'édition. Les tribunaux. C'est la « guerre de position » : une conquête lente, institution par institution. Quand la culture a basculé, la politique suit toute seule. Quarante ans plus tard, l'activiste allemand Rudi Dutschke en fera un slogan : la longue marche à travers les institutions. Pendant des décennies, on a vécu avec une énigme que personne n'arrivait vraiment à expliquer. Pourquoi presque tous les artistes sont-ils de gauche ? Les acteurs, les chanteurs, les profs, les journalistes, une bonne partie de la magistrature. Pourquoi un pays pouvait voter à droite élection après élection et voir quand même sa culture parler d'une seule voix ? On nous répondait : « c'est parce que les gens éduqués sont de gauche. » Je crois que la réponse est plus simple. Gramsci avait écrit la recette, et elle a été appliquée. Quand tu contrôles qui obtient la subvention, le poste, la bonne critique, le prix, l'invitation sur le plateau, tu contrôles ce qui devient « la culture ». La même énigme existait à l'échelle du monde. Pourquoi tant de pays en développement, notamment en Amérique latine, revotaient-ils encore et encore pour des gouvernements socialistes ou de gauche radicale ? Venezuela, Bolivie, Nicaragua, l'Argentine des Kirchner, la Colombie de Petro. L'économie s'effondrait, les cartels prospéraient, le chaos s'installait. Et pourtant le même vote revenait. Ma conviction : la pauvreté n'était pas un accident du système. C'était un électorat. Et autour, il y avait tout un écosystème d'ONG, de médias « indépendants » et de programmes de « société civile », financé en grande partie par l'argent occidental. Puis, début 2025, il s'est passé quelque chose que personne n'avait jamais osé faire. Elon et DOGE ont ouvert les livres de USAID. Une agence quasi intouchable depuis 1961, des dizaines de milliards de dollars par an. La grande majorité des programmes ont été coupés, et l'agence a été absorbée par le Département d'État. Le robinet a été fermé. Et regardez ce qui s'est passé depuis. Bolivie : le MAS perd le pouvoir après presque vingt ans. Équateur : Noboa réélu. Honduras : la droite reprend le pays. Chili : Kast élu. Argentine : Milei remporte largement les élections de mi-mandat. Et il y a deux jours, le Brésil. Jair Bolsonaro est inéligible, condamné à 27 ans de prison. La gauche pensait avoir refermé le chapitre. Lula, 80 ans, briguait un quatrième mandat face à un pays qu'on disait acquis. Dimanche, son fils Flávio est arrivé en tête du premier tour. Plus de 47 % contre près de 45 % pour Lula. Lula lui-même a reconnu un résultat « inattendu ». Le plus grand pays d'Amérique latine est à un second tour de basculer. Le plus grand virage à droite du continent depuis des décennies. Coïncidence ? Je ne crois pas. Quand le financement disparaît, le récit perd ses haut-parleurs. Il reste un dernier vrai bastion. L'Europe. Bruxelles finance ses propres réseaux d'ONG, avec une opacité que même la Cour des comptes européenne a pointée. Les grandes fondations comme l'Open Society de Soros. Les entités supranationales qui produisent de la norme sans jamais passer devant un électeur. C'est la dernière forteresse de l'hégémonie culturelle. Et elle commence à se fissurer. Je suis convaincu que tout ça va s'effondrer, et plus vite qu'on ne le pense. Gramsci avait raison sur un point essentiel : la culture précède la politique. Mais il avait oublié que ça marche dans les deux sens. Quand une culture artificielle perd ses perfusions, ce qu'il y a de vrai en dessous remonte à la surface. Ce qui vient après, je crois que c'est une renaissance. Une culture qui recommence à aimer la beauté, l'ambition, la science, la civilisation qui l'a fait naître. Et dans les livres d'histoire, on se souviendra que tout a commencé quand un homme a décidé de regarder les comptes. Il fallait quelqu'un d'assez riche pour ne dépendre de personne, d'assez fou pour s'y attaquer et d'assez libre pour encaisser la haine qui allait suivre. Merci Elon.
显示更多
0
952
32K
9.1K
转发到社区
Grammy-winning music duo Alicia Keys and Kaseem “Swizz Beatz” Dean — both TIME100 Art honorees — do not just create award-winning albums, but they also lead The Dean Collection, one of the most significant private collections of contemporary art by Black artists. At an event celebrating honorees in New York City Monday, Keys spoke on the energy and “magic” of a room full of artists.
显示更多
0
20
234
56
转发到社区
A ꘜ E ! 🩸 Cogito Ergo Sum. 🩸 Every person has a place hidden from all others—a place to which no one has a path except the person themselves. No one. In that place resides an idea that cannot be forbidden, even if all the weapons of mass destruction in the world were brought against it, and the person subjected to the highest pain and suffering, even if stripped of every good that people cling to. 🩸 Know this: the higher the pain, the shorter it lasts; it is instantaneous. Pain that is light by nature is endurable. 🩸 The harder the path, the greater the triumph. 🩸 Know that if someone sees a person enduring the highest deprivations from which all turn away, if he goes where all flee—a person who has scorned pain and all that is most cruel so that his idea may live—and even if he is deprived of absolutely everything, even the very possibility of living, this will not stop the idea that is directed toward the good of his neighbors. 🩸 On the contrary, it will blaze up in the hearts of millions and live forever. It will be passed from mouth to mouth. From person to person. From head to head. From retina to retina. From each to each. 🩸 For this person is an example of valor, diligence, fidelity, and struggle. 🩸 His image and deeds will pass through the millennia, and even if temporarily consigned to oblivion, they will blaze up anew until the end of time, until they perish in dust together with the entire universe in eternity. 🩸 This person is the force that inspires. No one will be able to stand aside if they see that an individual is doing everything to go beyond the limits of human possibility. 🩸 A person who challenges a lying system for the good of his neighbors. 🩸 All will want to be part of this great cause and add their energy to it. No one will stop an idea that contains within itself a good principle, born of truth and good intention. 🩸 No one is powerful enough to forbid people to think. 🩸 An idea cannot be stopped. 🩸 “Out of many, one.” 🩸 “One for all and all for one.” @DictatorCrypt #UpdateFinancialSystem# #Telegram# #DictatorCrypto# #DCT# #TON# #DictatorCryptoLegion# #GRAM#
显示更多
本地跑模型的可以试试 Strata( Qwen3.8-Flash-Next 做的推理引擎。同一张 RTX 3090 跑 IQ3_S,短问答 67 tok/s,llama.cpp 只有 20 tok/s,三倍多。思路很野:显存只放常驻部分和热点 experts,路由 experts 丢内存,n-gram embedding 表直接放 SSD 靠页缓存预读,CPU 那边还专门给 Q2_0 写了 AVX-512 VNNI 内核。作者用 12G 的 RTX 5070 跑 IQ3_XXS 也有 65.6 tok/s……24G 显存突然没那么刚需了
显示更多