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

与「import」相关的搜索结果

import 贴吧
一个关键词就是一个贴吧,路径全站唯一。
创建贴吧
用户
未找到
包含 import 的内容
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
转发到社区
Ever seen cherries labelled "J," "JJ" or "JJJ" in a Chinese supermarket? Here's what it means. In China, imported sweet cherries are called "che li zi," a transliteration of the English word "cherries." They're sold by size grade, and the number of J's tells you the diameter. Based on common labels on Chinese e-commerce platforms:
 J: about 26 to 28 mm
JJ: about 28 to 30 mm
JJJ: about 30 to 32 mm
4J: about 32 to 34 mm Each extra J adds roughly 2 mm, and can add quite a bit to the price. Right now is Chilean cherry season in China. Chile's summer is China's winter, so the first air shipments arrive in late October, with peak supply in December and January, just in time for New Year and Lunar New Year gifting. China is Chile's biggest cherry customer by far: according to 21st Century Business Herald, China has bought more than 90% of Chile's cherry exports for seven years in a row. Does anywhere near you grade fruit by size like this? 
#cherries# #Chile# #agriculture# In-depth reports at
显示更多
Je viens de regarder mon passage dans Quotidien. Évidemment, je suis qualifié d’« influenceur entrepreneur d’extrême droite ». Déroulons. Je ne sais pas si vous vous rendez compte à quel point le peuple français vous méprise. Vous êtes tellement déconnectés du réel que, dans votre petit monde, vous êtes persuadés d’avoir le monopole du bon sens. Alors je vais vous dire ce que vous êtes vraiment. Mais avant, je vais vous dire d’où je parle. Je suis breton. J’ai grandi dans un système scolaire profondément cassé. La majorité de mes profs étaient de gauche, et la plupart étaient déprimés. Pas méchants. Déprimés. Ils ne transmettaient qu’une chose : la conviction que le monde est injuste, que l’effort ne paie pas, et que demain sera pire qu’hier. Ce qui m’a sauvé, c’est d’avoir appris seul. J’ai commencé à coder à 12 ans. À 15 ans, j’avais créé un jeu qui me rapportait plus que le salaire de mes profs. Personne ne m’a donné la permission. Personne ne m’a subventionné. J’ai construit, des gens ont joué, j’ai été payé. La leçon d’économie la plus honnête de ma vie. Ensuite j’ai travaillé dans la tech, j’ai vécu dans la Silicon Valley, j’ai construit pas mal de choses. Et j’ai étudié l’économie par moi-même. Pas pour un diplôme. Pour comprendre comment le monde fonctionne vraiment. Et surtout, j’ai eu une chance que vous n’aurez jamais. J’ai été connecté, et je le suis encore, aux deux extrémités de la société. D’un côté, les couches les plus modestes, celles que vous prétendez protéger et incarner sans jamais leur parler. De l’autre, les couches les plus hautes : des milliardaires, des bâtisseurs, Elon Musk. Je fais le grand écart tous les jours. Et je peux vous dire une chose : en bas comme en haut, le diagnostic est le même. Vous, vous êtes au milieu, dans le seul étage de l’immeuble qui n’a pas de fenêtre. Ce que je vais dire maintenant, n’importe quelle personne saine d’esprit qui a un contact avec le réel le comprend. Yann, tu incarnes un mouvement et des idées qui ne représentent quasiment plus que vous. Ceux qui croient encore Quotidien et ses mensonges répétés en boucle, ce sont deux populations. Les gamins endoctrinés par une école capturée par l’idéologie. Et une partie des Français issus de l’immigration, qu’on manipule en leur répétant que les Français sont racistes. Un récit construit de toutes pièces par cette gauche mortifère, qui a besoin de victimes pour exister et qui les enferme dans ce rôle pour garder leurs voix. Les idées que vous défendez sont des idées de mort. Elles culpabilisent le travail. Elles humilient ceux qui construisent. Elles transforment chaque citoyen en assisté ou en suspect. Partout où elles ont été appliquées jusqu’au bout, elles ont produit la même chose : la pauvreté, la défiance, l’effondrement. Pas une exception. Pas une. Je le dis souvent : dans votre camp, il y a les cyniques et les believers. Les cyniques savent que ça ne marche pas, mais ça leur rapporte de l’audience, du pouvoir, des subventions. Les believers, eux, y croient sincèrement. Yann, je vais te laisser le bénéfice du doute. Je te range dans la case des believers. Alors un conseil : lis Hayek. La Route de la servitude. Ça se lit en un week-end, et ça t’expliquera pourquoi chaque bonne intention que tu défends à l’antenne pave exactement la route que tu prétends combattre. Tu as sans doute l’impression d’être du bon côté de l’histoire. Ils l’avaient tous. Mais tout ce que tu représentes enverra la France dans le chaos total. Les gens que tu appelles « extrême droite », ce sont des gens normaux. Des gens qui veulent vivre en sécurité, travailler, être payés dignement pour ce qu’ils font, et élever leur famille dans un pays qu’ils reconnaissent encore. C’est tout. Ce n’est pas une idéologie. C’est le bon sens que vous avez abandonné, puis insulté. Et je ne sais pas si vous mesurez ce qui est en train de se passer. Les peuples, dans leur intégralité, et avec eux les entrepreneurs, les créateurs de valeur, tous ceux qui font tourner ce pays, commencent à vous détester. Pas à vous critiquer. À vous détester, profondément, viscéralement. Chaque leçon de morale, chaque étiquette, chaque sketch condescendant creuse un peu plus le fossé. Alors un conseil d’ami : calmez-vous. Vraiment. Je viens d’un milieu très loin des salons feutrés parisiens et des dîners bobos où l’on décide entre soi qui a le droit de parler. Toi, tu vis dans une bulle. Une bulle confortable, chauffée, avec un public qui rit au signal. Mais le réel ne rit pas au signal. Plus personne ne vous croit. Et le réel vous jugera. Très sévèrement. Le replay a 27mn :
显示更多
0
128
2.1K
465
转发到社区
Jensen taught me a lot. But the most important things he taught me was to care about the details. And keep pushing no matter how long it takes you. 3 years ago, he invited me to fly on his jet with him. I was shocked. And he did it because he knew I was this unrelenting person that chased Snowflake for years to make the impossible a reality. He knew I was that person and he remembered I was that person. Few people at his level care to do either. He did both. I owe him a lot. He built a great company that changed my life forever. And he gave me the means to execute on my ambitions in a way that nothing else ever could. Praying for him, his family and everyone at NVIDIA past and present. PS. Photo is not AI generated. This flight was to Snowflake's conference!
显示更多
0
41
998
57
转发到社区
Jensen Huang and his wife holding hands during his first public appearance since the reported resignation. ❤️ Despite all the noise, controversies, and public scrutiny, they still appear affectionate towards each other. Whatever happens in the corporate world, family and personal relationships remain an important part of life. After decades of building a global technology empire, perhaps this is a reminder that there's more to life than titles, wealth, and professional achievements. Success is great, but having someone who stands by you through different seasons of life is priceless. ❤️
显示更多
0
141
1.4K
161
转发到社区
if SpaceX achieves a double catch, it will be one of the single most important moments in the history of rocketry and mark a new era of humanity’s access to space. tune the fuck in! don’t miss it
显示更多
0
3
167
5
转发到社区
Dylan Patel says Jensen personally talked tiny suppliers into letting Nvidia buy up their supply, and with him gone Google is already begging them for capacity "Jensen had complete foresight and understood the demand required and went to all of these executives, even of tiny companies where they only generate a few hundred million dollars of revenue but they have an important subcomponent." "He convinced them to let him buy the supply and build it all out..." "And now with Jensen gone, these companies are looking around the market and it's like, well, Google's begging for more capacity from the whole supply chain." "And without Jensen, can they maintain technology advantages given they're only a year ahead of their biggest competitors? It's not like the gap is massive."
显示更多
0
12
275
33
转发到社区
Boca Chica Beach is not for sale, and SpaceX isn’t attempting to buy it. The beach is an important part of the Rio Grande Valley community, and SpaceX is investing substantial resources to preserve and improve it →
显示更多
0
315
10.5K
973
转发到社区
GCSA Insight: Critical Security Vulnerability Discovered in a Leading Robotics Manufacturer’s Product, with System-Level Privilege Compromise Verified on Physical Hardware As artificial intelligence and embodied AI technologies continue to advance, robots are evolving from conventional automated machines into intelligent systems capable of perception, decision-making, and autonomous operation. At the same time, cybersecurity risks are extending beyond software and data into the physical world. The security of robotic systems is no longer solely a matter of protecting data and devices; it can also directly affect operational safety, physical environments, and user safety. Recently, the security research team of the Global Cybersecurity Alliance (GCSA) discovered and verified a critical security vulnerability in a product developed by a leading robotics manufacturer. Through in-depth analysis and multiple rounds of testing on physical hardware, the team successfully breached the device’s system security boundaries and obtained the highest level of operating system privileges in a real-world device environment, demonstrating the vulnerability’s actual impact under specific testing conditions. This research encompassed the entire process, from identifying the security flaw and assessing its risks to validating its impact on physical hardware. The findings also highlight significant challenges facing the underlying security mechanisms of embodied AI systems. The research findings and supporting evidence have been formally submitted to the manufacturer. On November 13, 2026, the manufacturer responded by email, preliminarily confirming the existence of the vulnerability and stating that it had initiated internal remediation efforts and an assessment of the scope of affected products. It is important to emphasize that confirmation of a vulnerability does not mean the associated security risks have been eliminated. GCSA will continue to monitor the manufacturer’s assessment of the affected scope, remediation plans, and subsequent security validation, and will update its research findings as new information becomes available. For intelligent systems capable of physical interaction and movement, timely, effective, and verifiable security remediation is particularly important. In accordance with responsible vulnerability disclosure principles, GCSA is currently withholding sensitive information, including the manufacturer’s identity, specific product details, the vulnerability’s underlying mechanisms, and exploitation methods. GCSA is currently seeking guidance from relevant authorities and regulatory bodies regarding the associated security risks. Taking into account the manufacturer’s remediation progress and a comprehensive assessment of potential security implications, GCSA will carefully determine the appropriate arrangements for further disclosure. Subject to appropriate conditions and upon obtaining the consent of the relevant authorities and regulatory bodies, GCSA will publicly release a detailed security insight report, providing the industry with ongoing updates on the research findings and associated risk assessments. The findings of this research are based on specific testing environments and the evidence obtained to date. They do not imply that other product models or similar robotic systems are affected by the same security issue. This security research and validation on physical hardware represent one of GCSA’s initiatives in the field of embodied AI security. GCSA will continue to advance security research, coordinated vulnerability disclosure, and industry collaboration to promote stronger security response mechanisms across the artificial intelligence sector, enhance product security, and strengthen industry trust. 🔗 Read the full report: · Stay Connected with GCSA Follow GCSA's official social media channels for the latest news, product launches, research developments, and ecosystem updates. GCSA Official Telegram Channel: GCSA Official WeChat Account: #GCSAInsight# #GCSACybersecurity# #GCSASecVibe#
显示更多
0
29
208
7
转发到社区
We’re seeing encouraging recovery progress, with service availability and email delivery performance improving across a growing portion of affected infrastructure. We know our customers rely on our services to get important work done every day, and regret the impact these outages had on those who depend on us. We will continue to share more information as we have it, and for now we can confirm that there is no indication this is the result of malicious or cyber activity. Our teams are reviewing what happened and how we can prevent similar issues going forward.
显示更多
0
0
1K
225
转发到社区