text:
index.query with mode as embedding and default seems to only going through tok-1 embedding

While using mode as embedding and default in debug mode, a Similarity score for top-1 node is calculated '[Node 4610b299-7a25-47e4-b3e6-382e0cab5792] [Similarity score:             0.767936]' and only that seems to be used 'Top 1 nodes'. The answer does not seem to be refined iteratively in debug mode and is reached on the first guess.
Can someone clarify what is going wrong?
Code:
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler(stream=sys.stdout))

documents = SimpleDirectoryReader('data').load_data()
index = GPTSimpleVectorIndex(documents)
response = index.query( "Tell me all the names of people mentioned in the document?",mode='default')
print(response)

Debug output:

DEBUG:openai:message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-embedding-ada-002/embeddings
message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-embedding-ada-002/embeddings
DEBUG:openai:api_version=None data='{"input": ["Tell me all the names of people mentioned in the document?"], "encoding_format": "base64"}' message='Post details'
api_version=None data='{"input": ["Tell me all the names of people mentioned in the document?"], "encoding_format": "base64"}' message='Post details'
DEBUG:urllib3.connectionpool:https://api.openai.com:443 "POST /v1/engines/text-embedding-ada-002/embeddings HTTP/1.1" 200 8419
https://api.openai.com:443 "POST /v1/engines/text-embedding-ada-002/embeddings HTTP/1.1" 200 8419
DEBUG:openai:message='OpenAI API response' path=https://api.openai.com/v1/engines/text-embedding-ada-002/embeddings processing_ms=111 request_id=8c0c46a439ec81570080f280a1d267ce response_code=200
message='OpenAI API response' path=https://api.openai.com/v1/engines/text-embedding-ada-002/embeddings processing_ms=111 request_id=8c0c46a439ec81570080f280a1d267ce response_code=200
DEBUG:gpt_index.indices.utils:> Top 1 nodes:

[Node 4610b299-7a25-47e4-b3e6-382e0cab5792] [Similarity score:             0.767936] of my men’s group for sharing their
stories, and I especially thank Lenney Eiger, Charles Wood,
J...
Top 1 nodes:
[Node 4610b299-7a25-47e4-b3e6-382e0cab5792] [Similarity score:             0.767936] of my men’s group for sharing their
stories, and I especially thank Lenney Eiger, Charles Wood,
J...
DEBUG:root:> Searching in chunk: of my men’s group for sharing their
stories, an...
Searching in chunk: of my men’s group for sharing their
stories, an...
DEBUG:openai:message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions
message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions
DEBUG:openai:api_version=None data='{"prompt": ["Context information is below. \n---------------------\nof my men\u2019s group for sharing their\nstories, and I especially thank Lenney Eiger, Charles Wood,\nJacques Early, David Placek, and Chris Johns, who gave me\nsuch valuable feedback for editing the manuscript.\nI thank my secretary, Ariana, for efficiently and responsibly taking over the office during this project.\nI thank my lawyer (and adopted grandfather of my children), Jerry Riefold, for always being there.\nI thank Clifford McGuire for his continued friendship of\ntwenty years. I could not ask for a better sounding board and\nfriend.\n\n\fAbout the Author\nJohn Gray, Ph.D., an internationally recognized expert in\nthe fields of communication and relationships, and author of\ntwelve bestsellers, has been conducting personal growth seminars for thirty years. He is a certified family therapist\n(National Academy for Certified Therapists), a consulting\neditor of The Family Journal, a member of the Distinguished\nAdvisory Board of the International Association of Marriage\nand Family Counselors, and a member of the American\nCounseling Association. John lives with his wife and three\nchildren in northern California.\n\n\fAlso by John Gray, Ph.D.\nTruly Mars & Venus\nMars & Venus in the Workplace\nPractical Miracles for Mars & Venus\nChildren Are from Heaven\nHow to Get What You Want and Want What You Have\nMen Are from Mars, Women Are from Venus\nBook of Days\nMars & Venus Starting Over\nMars & Venus on a Date\nMars & Venus in Love\nMars & Venus Together Forever\nMars & Venus in the Bedroom\nWhat Your Mother Couldn\u2019t Tell You\nand Your Father Didn\u2019t Know\nMen, Women & Relationships\nWhat You Feel, You Can Heal\n\n\fCredits\nCover illustrations by Nicky Slater\n\n\fA hardcover edition of this book was published in\n1992 by HarperCollins Publishers.\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS.\n\nCopyright \u00a9 1992 by J. G. Productions, Inc. All\nrights reserved under International and PanAmerican Copyright Conventions. By payment of\nthe required fees, you have been granted the nonexclusive, non-transferable right to access and read\nthe text of this e-book on-screen. No part of this\ntext may be reproduced, transmitted, down-loaded,\ndecompiled, reverse engineered, or stored in or\nintroduced into any information storage and\nretrieval system, in any form or by any means,\nwhether electronic or mechanical, now known or\nhereinafter invented, without the express written\npermission of PerfectBound\u2122.\nPerfectBound\u2122 and the PerfectBound\u2122 logo are\ntrademarks of HarperCollins Publishers, Inc.\nAdobe Acrobat eBook Reader December 2003\nISBN 0-06-073954-1\nFirst Quill edition published 2004.\n10 9 8 7 6 5 4 3 2 1\n\n\fIf you like what you have read,\nand you want more for your company,\norganization, or yourself, consider:\nMARS VENUS IN THE WORKPLACE SEMINARS\nThousands of individuals and companies around the world have already benefited\nfrom John Gray\u2019s workplace seminars. We invite you to share an inspiring\npresentation or workshop with your company. MARS VENUS IN THE WORKPLACE\nseminars are designed to enhance gender communication in the workplace at all\nlevels. Presentations are made by John Gray or one of his many trainers. Each seminar can easily be tailored to the unique needs of your company or organization.\nPlease call our representatives toll-free at 1-888-MARSVENUS (1-888-627-7836) or\nvisit John Gray\u2019s web site at www.marsvenus.com for booking information.\n\nATTENDING A MARS VENUS WORKSHOP\nThe MARS VENUS INSTITUTE offers workshops that bring information to local\ncommunities and organizations around the world and trains those interested in\npresenting these workshops. MARS VENUS workshops focus on different topics,\nincluding improving communication, understanding differences, dating, starting\nover, parenting, and achieving personal success. These fun and insightful workshops feature favorite video segments from live seminars by John Gray, along with\nworkbooks and exercises for participants to apply the information. A current\nschedule of workshops available throughout the world can be found on the web\nsite. To facilitate a workshop for your school, church, organization, or community,\nplease call 1-888-MARSVENUS (1-888-627-7836). Becoming a facilitator is easy.\nYou can be trained to present these workshops over the Internet or through correspondence.\n\nMARS VENUS COUNSELING CENTERS\nIn response to the thousands of requests we have received for licensed\nprofessionals who use the MARS VENUS principles in their practices, John Gray has\nprovided a training program for licensed professionals to provide the MARS VENUS\napproach to their clients. Participants in this program have completed a rigorous\nstudy of John\u2019s work and have demonstrated a commitment to his valuable\nconcepts. If you are interested in a referral to a counselor in your area or you seek\ninformation to be trained as a MARS VENUS counselor or to establish a MARS\nVENUS counseling center, please call 1-888-MARSVENUS (1-888-627-7836).\n\nwww.marsvenus.com\n\n\fTALK TO A MARS VENUS RELATIONSHIP COACH\nReading John Gray\u2019s books and listening to his tapes have helped millions of\nindividuals to improve communication and get what they want in their\nrelationships. Whether you are single or married, it is never too late or too early to\nunderstand the ways men and women are different. This valuable resource can be\nenriched by talking to a MARS VENUS relationship coach on the phone.\nWhen you feel the need to talk with someone like you or of the opposite sex, who\nis also familiar with the MARS VENUS principles and insights, he or she is only a\nphone call away. By calling a MARS VENUS coach, you will receive personal\nattention to your specific needs. In the privacy of your own home, with complete\nanonymity, you can freely share your concerns and questions to sort out what you\nfeel and then decide what you want to do. You decide when and how long you want\nto talk. Call 1-888-MARSVENUS (1-888-627-7836) or visit www.askmarsvenus.com.\n\nEXPLORE THE WORLD OF JOHN GRAY AT MARSVENUS.COM\nAt www.marsvenus.com you will find information on the following subjects:\n\u2022 John Gray\u2019s free weekly newsletter\n\u2022 Workshops, seminars, coaching, and counseling\n\u2022 John\u2019s weekly question-and-answer column\n\u2022 The MARS VENUS Dating Site\n\u2022 The MARS VENUS Store\n\u2022 John\u2019s Calendar\n\u2022 How to become a MARS VENUS facilitator, coach, or counselor\n\u2022 Insight, advice, and shared experiences from all of John Gray\u2019s\nbooks and tapes, from personal relationships and parenting\nto achieving greater success at work\nIf you do not have Internet access and would like the information on any of the\nabove topics, please call toll-free 1-888-MARSVENUS (1-888-627-7836).\n\nSHOP ONLINE AT THE MARS VENUS STORE\nJohn\u2019s books, audio and video programs, and game are developed for all ages and\nstages of relationships. You can purchase all of his products easily online when\nyou visit the store at www.marsvenus.com. Each week a different program is\ndiscounted specially for MARS VENUS online visitors.\nIf you don\u2019t have Internet access and desire further explorations of the wonderful\nworld of Mars and Venus, or if you wish to make an order or receive additional\ninformation, please call toll-free 1-888-MARSVENUS (1-888-627-7836).\n\n\fFor All Ages and Stages of Relationships\n10TH ANNIVERSARY\nI L L U S T R AT E D E D I T I O N\n\nTRULY MARS & VENUS\nThe Illustrated Men Are from Mars,\nWomen Are from Venus\nHardcover 0-06-008565-7\n\nNOW\n\nAVA I L A B L E\n\nIN\n\nPA P E R B A C K\n\nMEN ARE FROM MARS,\nWOMEN ARE FROM VENUS\nThe Classic Guide to\nUnderstanding the Opposite Sex\nPaperback 0-06-057421-6\nAudio versions read by the author:\n1 cassette / 90 min. (abridged) 1-55994-878-7\n2 compact discs / 90 min. (abridged) 0-694-51720-8\n6 cassettes / 9.5 hours (unabridged) 0-694-51992-8\nAlso available in Spanish:\n\nLOS HOMBRES SON DE MARTE, LAS MUJERES SON DE VENUS\nTrade paperback 0-06-095143-5\n1 cassette / 90 min. (abridged) 0-694-51678-3\nl\nationa\nIntern ller\nBestse\n\nwww.marsvenus.com\n\n\fCOUPLES\u2019\n\nTRUE\n\nSTORIES\n\nMARS AND VENUS IN LOVE\nInspiring and Heartfelt Stories of Relationships That Work\nTrade paperback 0-06-050578-8\nAudio version read by the author:\n2 cassettes / 3 hours (abridged) 0-694-51713-5\n\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS BOOK OF DAYS\n365 Inspirations to Enrich Your Relationships\nHardcover 0-06-019277-1\n\nKEEP\n\nPA S S I O N\n\nALIVE!\n\nMARS AND VENUS IN THE BEDROOM\nA Guide to Lasting Romance and Passion\n#1\nNew York Times\nBestseller\n\nHardcover 0-06-017212-6\nTrade paperback 0-06-092793-3\nAudio versions read by the author:\n2 cassettes / 2 hours (abridged) 1-55994-883-3\n2 compact discs / 2 hours (abridged) 0-694-52215-5\n\nAlso available in Spanish: MARTE Y VENUS EN EL DORMITORIO\nTrade paperback 0-06-095180-X\n2 cassettes / 2 hours (abridged) 0-694-51676-7\n\nMAKE\n\nLOVE\n\nLAST!\n\nMEN, WOMEN AND RELATIONSHIPS\nMaking Peace with the Opposite Sex\nTrade paperback 0-06-050786-1\nAudio version read by the author:\n1 cassette / 1.5 hours (abridged) 0-694-51534-5\n\nMARS AND VENUS TOGETHER FOREVER\nRelationship Skills for Lasting Love\nTrade paperback 0-06-092661-9\n\nAlso available in Spanish: MARTE Y VENUS JUNTOS PARA SIEMPRE\nTrade paperback 0-06-095236-9\n\n\fA\n\nROAD\n\nMAP\n\nTO\n\nD AT I N G\n\nMARS AND VENUS ON A DATE\n\n#1\n\nA Guide for Navigating the 5 Stages of Dating\nto Create a Loving and Lasting Relationship\n\nNew York Times\nBestseller\n\nTrade paperback 0-06-093221-X\nAudio version read by the author:\n2 cassettes / 3 hours (abridged) 0-694-51845-X\n\nOVERCOME\n\nLOSS\n\n&\n\nGAIN\n\nCONFIDENCE\n\nMARS AND VENUS STARTING OVER\nA Practical Guide for Finding Love Again After a\nPainful Breakup, Divorce, or the Loss of a Loved One\n#1\nNew York Times\nBestseller\n\nTrade paperback 0-06-093027-6\nLarge Print 0-06-093303-8\nAudio version read by the author:\n2 cassettes / 3 hours (abridged) 0-694-51976-6\n\nBECAUSE PERSONAL DYNAMICS\nCAN MAKE THE DIFFERENCE\n\nHOW TO GET WHAT YOU WANT AT WORK\nA Practical Guide for Improving Communication and Getting Results\nPaperback 0-06-095763-8\nHardcover (published under the title Mars and Venus in the Workplace) 0-06-019796-X\nAudio versions read by the author:\n6 cassettes / 9 hours (unabridged) 0-694-52655-X\n2 cassettes / 2.5 hours (abridged) 0-694-52555-3\n2 compact discs / 2.5 hours (abridged) 0-694-52560-X\n\nM A K E PA R E N T I N G A\nPOSITIVE EXPERIENCE\n\nCHILDREN ARE FROM HEAVEN\nPositive Parenting Skills for Raising Cooperative,\nConfident, and Compassionate Children\n\n#1\nNew York Times\nBestseller\n\nTrade paperback 0-06-093099-3\nAudio versions read by the author:\n2 cassettes / 2.5 hours (abridged) 0-694-52136-1\n2 compact discs / 2.5 hours (abridged) 0-694-52170-1\n7 cassettes / 10.5 hours (unabridged) 0-694-52163-9\n\nwww.marsvenus.com\n\n\fCHANGE\n\nYOUR\n\nLIFE!\n\nHOW TO GET WHAT YOU WANT AND WANT WHAT YOU HAVE\nA Practical and Spiritual Guide to Personal Success\nTrade paperback 0-06-093215-5\nLarge Print 0-06-093307-0\nAudio versions read by the author:\n2 compact discs / 2 hours (abridged) 0-694-52177-9\n2 cassettes / 2 hours (abridged) 0-694-52179-5\n6 cassettes / 10 hours (unabridged) 0-694-52178-7\n#1\nNew York Times\nBestseller\n\nPRACTICAL MIRACLES FOR MARS AND VENUS\nNine Principles for Lasting Love, Increasing Success,\nand Vibrant Health in the Twenty-first Century\nTrade paperback 0-06-093730-0\nLarge Print 0-06-019950-4\nAudio versions read by the author:\n7 compact discs / 9 hours (unabridged) 0-694-52371-2\n6 cassettes / 9 hours (unabridged) 0-694-52372-0\n\nJ O H N G R AY A U D I O E X C L U S I V E S\n\nWHAT YOU FEEL, YOU CAN HEAL\nA Guide for Enriching Relationships\n2 cassettes / 2 hours (abridged) 0-694-51613-9\n\nMARS AND VENUS ON LOVE AUDIO COLLECTION\nContains one of each audio book: Men, Women and Relationships,\nMars and Venus in Love, and Mars and Venus on a Date\n0-694-52298-8 (abridged)\n\nTHE MARS AND VENUS AUDIO COLLECTION\nContains one of each audio book: Men Are from Mars, Women Are from\nVenus, What Your Mother Couldn\u2019t Tell You and Your Father Didn\u2019t Know,\nand Mars and Venus in the Bedroom\n0-694-51589-2 (abridged)\n\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS REFLECTIONS\nInspirations to Enrich Your Relationships\n2 cassettes / 3 hours\n---------------------\nGiven the context information and not prior knowledge, answer the question: Tell me all the names of people mentioned in the document?\n"], "model": "text-davinci-003", "temperature": 0.0, "max_tokens": 256, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "n": 1, "best_of": 1, "logit_bias": {}}' message='Post details'
api_version=None data='{"prompt": ["Context information is below. \n---------------------\nof my men\u2019s group for sharing their\nstories, and I especially thank Lenney Eiger, Charles Wood,\nJacques Early, David Placek, and Chris Johns, who gave me\nsuch valuable feedback for editing the manuscript.\nI thank my secretary, Ariana, for efficiently and responsibly taking over the office during this project.\nI thank my lawyer (and adopted grandfather of my children), Jerry Riefold, for always being there.\nI thank Clifford McGuire for his continued friendship of\ntwenty years. I could not ask for a better sounding board and\nfriend.\n\n\fAbout the Author\nJohn Gray, Ph.D., an internationally recognized expert in\nthe fields of communication and relationships, and author of\ntwelve bestsellers, has been conducting personal growth seminars for thirty years. He is a certified family therapist\n(National Academy for Certified Therapists), a consulting\neditor of The Family Journal, a member of the Distinguished\nAdvisory Board of the International Association of Marriage\nand Family Counselors, and a member of the American\nCounseling Association. John lives with his wife and three\nchildren in northern California.\n\n\fAlso by John Gray, Ph.D.\nTruly Mars & Venus\nMars & Venus in the Workplace\nPractical Miracles for Mars & Venus\nChildren Are from Heaven\nHow to Get What You Want and Want What You Have\nMen Are from Mars, Women Are from Venus\nBook of Days\nMars & Venus Starting Over\nMars & Venus on a Date\nMars & Venus in Love\nMars & Venus Together Forever\nMars & Venus in the Bedroom\nWhat Your Mother Couldn\u2019t Tell You\nand Your Father Didn\u2019t Know\nMen, Women & Relationships\nWhat You Feel, You Can Heal\n\n\fCredits\nCover illustrations by Nicky Slater\n\n\fA hardcover edition of this book was published in\n1992 by HarperCollins Publishers.\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS.\n\nCopyright \u00a9 1992 by J. G. Productions, Inc. All\nrights reserved under International and PanAmerican Copyright Conventions. By payment of\nthe required fees, you have been granted the nonexclusive, non-transferable right to access and read\nthe text of this e-book on-screen. No part of this\ntext may be reproduced, transmitted, down-loaded,\ndecompiled, reverse engineered, or stored in or\nintroduced into any information storage and\nretrieval system, in any form or by any means,\nwhether electronic or mechanical, now known or\nhereinafter invented, without the express written\npermission of PerfectBound\u2122.\nPerfectBound\u2122 and the PerfectBound\u2122 logo are\ntrademarks of HarperCollins Publishers, Inc.\nAdobe Acrobat eBook Reader December 2003\nISBN 0-06-073954-1\nFirst Quill edition published 2004.\n10 9 8 7 6 5 4 3 2 1\n\n\fIf you like what you have read,\nand you want more for your company,\norganization, or yourself, consider:\nMARS VENUS IN THE WORKPLACE SEMINARS\nThousands of individuals and companies around the world have already benefited\nfrom John Gray\u2019s workplace seminars. We invite you to share an inspiring\npresentation or workshop with your company. MARS VENUS IN THE WORKPLACE\nseminars are designed to enhance gender communication in the workplace at all\nlevels. Presentations are made by John Gray or one of his many trainers. Each seminar can easily be tailored to the unique needs of your company or organization.\nPlease call our representatives toll-free at 1-888-MARSVENUS (1-888-627-7836) or\nvisit John Gray\u2019s web site at www.marsvenus.com for booking information.\n\nATTENDING A MARS VENUS WORKSHOP\nThe MARS VENUS INSTITUTE offers workshops that bring information to local\ncommunities and organizations around the world and trains those interested in\npresenting these workshops. MARS VENUS workshops focus on different topics,\nincluding improving communication, understanding differences, dating, starting\nover, parenting, and achieving personal success. These fun and insightful workshops feature favorite video segments from live seminars by John Gray, along with\nworkbooks and exercises for participants to apply the information. A current\nschedule of workshops available throughout the world can be found on the web\nsite. To facilitate a workshop for your school, church, organization, or community,\nplease call 1-888-MARSVENUS (1-888-627-7836). Becoming a facilitator is easy.\nYou can be trained to present these workshops over the Internet or through correspondence.\n\nMARS VENUS COUNSELING CENTERS\nIn response to the thousands of requests we have received for licensed\nprofessionals who use the MARS VENUS principles in their practices, John Gray has\nprovided a training program for licensed professionals to provide the MARS VENUS\napproach to their clients. Participants in this program have completed a rigorous\nstudy of John\u2019s work and have demonstrated a commitment to his valuable\nconcepts. If you are interested in a referral to a counselor in your area or you seek\ninformation to be trained as a MARS VENUS counselor or to establish a MARS\nVENUS counseling center, please call 1-888-MARSVENUS (1-888-627-7836).\n\nwww.marsvenus.com\n\n\fTALK TO A MARS VENUS RELATIONSHIP COACH\nReading John Gray\u2019s books and listening to his tapes have helped millions of\nindividuals to improve communication and get what they want in their\nrelationships. Whether you are single or married, it is never too late or too early to\nunderstand the ways men and women are different. This valuable resource can be\nenriched by talking to a MARS VENUS relationship coach on the phone.\nWhen you feel the need to talk with someone like you or of the opposite sex, who\nis also familiar with the MARS VENUS principles and insights, he or she is only a\nphone call away. By calling a MARS VENUS coach, you will receive personal\nattention to your specific needs. In the privacy of your own home, with complete\nanonymity, you can freely share your concerns and questions to sort out what you\nfeel and then decide what you want to do. You decide when and how long you want\nto talk. Call 1-888-MARSVENUS (1-888-627-7836) or visit www.askmarsvenus.com.\n\nEXPLORE THE WORLD OF JOHN GRAY AT MARSVENUS.COM\nAt www.marsvenus.com you will find information on the following subjects:\n\u2022 John Gray\u2019s free weekly newsletter\n\u2022 Workshops, seminars, coaching, and counseling\n\u2022 John\u2019s weekly question-and-answer column\n\u2022 The MARS VENUS Dating Site\n\u2022 The MARS VENUS Store\n\u2022 John\u2019s Calendar\n\u2022 How to become a MARS VENUS facilitator, coach, or counselor\n\u2022 Insight, advice, and shared experiences from all of John Gray\u2019s\nbooks and tapes, from personal relationships and parenting\nto achieving greater success at work\nIf you do not have Internet access and would like the information on any of the\nabove topics, please call toll-free 1-888-MARSVENUS (1-888-627-7836).\n\nSHOP ONLINE AT THE MARS VENUS STORE\nJohn\u2019s books, audio and video programs, and game are developed for all ages and\nstages of relationships. You can purchase all of his products easily online when\nyou visit the store at www.marsvenus.com. Each week a different program is\ndiscounted specially for MARS VENUS online visitors.\nIf you don\u2019t have Internet access and desire further explorations of the wonderful\nworld of Mars and Venus, or if you wish to make an order or receive additional\ninformation, please call toll-free 1-888-MARSVENUS (1-888-627-7836).\n\n\fFor All Ages and Stages of Relationships\n10TH ANNIVERSARY\nI L L U S T R AT E D E D I T I O N\n\nTRULY MARS & VENUS\nThe Illustrated Men Are from Mars,\nWomen Are from Venus\nHardcover 0-06-008565-7\n\nNOW\n\nAVA I L A B L E\n\nIN\n\nPA P E R B A C K\n\nMEN ARE FROM MARS,\nWOMEN ARE FROM VENUS\nThe Classic Guide to\nUnderstanding the Opposite Sex\nPaperback 0-06-057421-6\nAudio versions read by the author:\n1 cassette / 90 min. (abridged) 1-55994-878-7\n2 compact discs / 90 min. (abridged) 0-694-51720-8\n6 cassettes / 9.5 hours (unabridged) 0-694-51992-8\nAlso available in Spanish:\n\nLOS HOMBRES SON DE MARTE, LAS MUJERES SON DE VENUS\nTrade paperback 0-06-095143-5\n1 cassette / 90 min. (abridged) 0-694-51678-3\nl\nationa\nIntern ller\nBestse\n\nwww.marsvenus.com\n\n\fCOUPLES\u2019\n\nTRUE\n\nSTORIES\n\nMARS AND VENUS IN LOVE\nInspiring and Heartfelt Stories of Relationships That Work\nTrade paperback 0-06-050578-8\nAudio version read by the author:\n2 cassettes / 3 hours (abridged) 0-694-51713-5\n\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS BOOK OF DAYS\n365 Inspirations to Enrich Your Relationships\nHardcover 0-06-019277-1\n\nKEEP\n\nPA S S I O N\n\nALIVE!\n\nMARS AND VENUS IN THE BEDROOM\nA Guide to Lasting Romance and Passion\n#1\nNew York Times\nBestseller\n\nHardcover 0-06-017212-6\nTrade paperback 0-06-092793-3\nAudio versions read by the author:\n2 cassettes / 2 hours (abridged) 1-55994-883-3\n2 compact discs / 2 hours (abridged) 0-694-52215-5\n\nAlso available in Spanish: MARTE Y VENUS EN EL DORMITORIO\nTrade paperback 0-06-095180-X\n2 cassettes / 2 hours (abridged) 0-694-51676-7\n\nMAKE\n\nLOVE\n\nLAST!\n\nMEN, WOMEN AND RELATIONSHIPS\nMaking Peace with the Opposite Sex\nTrade paperback 0-06-050786-1\nAudio version read by the author:\n1 cassette / 1.5 hours (abridged) 0-694-51534-5\n\nMARS AND VENUS TOGETHER FOREVER\nRelationship Skills for Lasting Love\nTrade paperback 0-06-092661-9\n\nAlso available in Spanish: MARTE Y VENUS JUNTOS PARA SIEMPRE\nTrade paperback 0-06-095236-9\n\n\fA\n\nROAD\n\nMAP\n\nTO\n\nD AT I N G\n\nMARS AND VENUS ON A DATE\n\n#1\n\nA Guide for Navigating the 5 Stages of Dating\nto Create a Loving and Lasting Relationship\n\nNew York Times\nBestseller\n\nTrade paperback 0-06-093221-X\nAudio version read by the author:\n2 cassettes / 3 hours (abridged) 0-694-51845-X\n\nOVERCOME\n\nLOSS\n\n&\n\nGAIN\n\nCONFIDENCE\n\nMARS AND VENUS STARTING OVER\nA Practical Guide for Finding Love Again After a\nPainful Breakup, Divorce, or the Loss of a Loved One\n#1\nNew York Times\nBestseller\n\nTrade paperback 0-06-093027-6\nLarge Print 0-06-093303-8\nAudio version read by the author:\n2 cassettes / 3 hours (abridged) 0-694-51976-6\n\nBECAUSE PERSONAL DYNAMICS\nCAN MAKE THE DIFFERENCE\n\nHOW TO GET WHAT YOU WANT AT WORK\nA Practical Guide for Improving Communication and Getting Results\nPaperback 0-06-095763-8\nHardcover (published under the title Mars and Venus in the Workplace) 0-06-019796-X\nAudio versions read by the author:\n6 cassettes / 9 hours (unabridged) 0-694-52655-X\n2 cassettes / 2.5 hours (abridged) 0-694-52555-3\n2 compact discs / 2.5 hours (abridged) 0-694-52560-X\n\nM A K E PA R E N T I N G A\nPOSITIVE EXPERIENCE\n\nCHILDREN ARE FROM HEAVEN\nPositive Parenting Skills for Raising Cooperative,\nConfident, and Compassionate Children\n\n#1\nNew York Times\nBestseller\n\nTrade paperback 0-06-093099-3\nAudio versions read by the author:\n2 cassettes / 2.5 hours (abridged) 0-694-52136-1\n2 compact discs / 2.5 hours (abridged) 0-694-52170-1\n7 cassettes / 10.5 hours (unabridged) 0-694-52163-9\n\nwww.marsvenus.com\n\n\fCHANGE\n\nYOUR\n\nLIFE!\n\nHOW TO GET WHAT YOU WANT AND WANT WHAT YOU HAVE\nA Practical and Spiritual Guide to Personal Success\nTrade paperback 0-06-093215-5\nLarge Print 0-06-093307-0\nAudio versions read by the author:\n2 compact discs / 2 hours (abridged) 0-694-52177-9\n2 cassettes / 2 hours (abridged) 0-694-52179-5\n6 cassettes / 10 hours (unabridged) 0-694-52178-7\n#1\nNew York Times\nBestseller\n\nPRACTICAL MIRACLES FOR MARS AND VENUS\nNine Principles for Lasting Love, Increasing Success,\nand Vibrant Health in the Twenty-first Century\nTrade paperback 0-06-093730-0\nLarge Print 0-06-019950-4\nAudio versions read by the author:\n7 compact discs / 9 hours (unabridged) 0-694-52371-2\n6 cassettes / 9 hours (unabridged) 0-694-52372-0\n\nJ O H N G R AY A U D I O E X C L U S I V E S\n\nWHAT YOU FEEL, YOU CAN HEAL\nA Guide for Enriching Relationships\n2 cassettes / 2 hours (abridged) 0-694-51613-9\n\nMARS AND VENUS ON LOVE AUDIO COLLECTION\nContains one of each audio book: Men, Women and Relationships,\nMars and Venus in Love, and Mars and Venus on a Date\n0-694-52298-8 (abridged)\n\nTHE MARS AND VENUS AUDIO COLLECTION\nContains one of each audio book: Men Are from Mars, Women Are from\nVenus, What Your Mother Couldn\u2019t Tell You and Your Father Didn\u2019t Know,\nand Mars and Venus in the Bedroom\n0-694-51589-2 (abridged)\n\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS REFLECTIONS\nInspirations to Enrich Your Relationships\n2 cassettes / 3 hours\n---------------------\nGiven the context information and not prior knowledge, answer the question: Tell me all the names of people mentioned in the document?\n"], "model": "text-davinci-003", "temperature": 0.0, "max_tokens": 256, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "n": 1, "best_of": 1, "logit_bias": {}}' message='Post details'
DEBUG:urllib3.connectionpool:https://api.openai.com:443 "POST /v1/completions HTTP/1.1" 200 402
https://api.openai.com:443 "POST /v1/completions HTTP/1.1" 200 402
DEBUG:openai:message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=29557 request_id=04e5da812012e23aff39eb7ff2aa87e7 response_code=200
message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=29557 request_id=04e5da812012e23aff39eb7ff2aa87e7 response_code=200
DEBUG:root:
John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater

John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater
DEBUG:root:> Initial response:
John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater

Initial response:
John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater
DEBUG:root:> Refine context: Relationships
2 cassettes / 2 hours (abridged) ...
Refine context: Relationships
2 cassettes / 2 hours (abridged) ...
DEBUG:openai:message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions
message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions
DEBUG:openai:api_version=None data='{"prompt": ["The original question is as follows: Tell me all the names of people mentioned in the document?\nWe have provided an existing answer: \nJohn Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater\nWe have the opportunity to refine the existing answer(only if needed) with some more context below.\n------------\nRelationships\n2 cassettes / 2 hours (abridged) 0-694-51613-9\n\nMARS AND VENUS ON LOVE AUDIO COLLECTION\nContains one of each audio book: Men, Women and Relationships,\nMars and Venus in Love, and Mars and Venus on a Date\n0-694-52298-8 (abridged)\n\nTHE MARS AND VENUS AUDIO COLLECTION\nContains one of each audio book: Men Are from Mars, Women Are from\nVenus, What Your Mother Couldn\u2019t Tell You and Your Father Didn\u2019t Know,\nand Mars and Venus in the Bedroom\n0-694-51589-2 (abridged)\n\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS REFLECTIONS\nInspirations to Enrich Your Relationships\n2 cassettes / 3 hours (abridged)\n------------\nGiven the new context, refine the original answer to better answer the question. If the context isn't useful, return the original answer."], "model": "text-davinci-003", "temperature": 0.0, "max_tokens": 256, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "n": 1, "best_of": 1, "logit_bias": {}}' message='Post details'
api_version=None data='{"prompt": ["The original question is as follows: Tell me all the names of people mentioned in the document?\nWe have provided an existing answer: \nJohn Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater\nWe have the opportunity to refine the existing answer(only if needed) with some more context below.\n------------\nRelationships\n2 cassettes / 2 hours (abridged) 0-694-51613-9\n\nMARS AND VENUS ON LOVE AUDIO COLLECTION\nContains one of each audio book: Men, Women and Relationships,\nMars and Venus in Love, and Mars and Venus on a Date\n0-694-52298-8 (abridged)\n\nTHE MARS AND VENUS AUDIO COLLECTION\nContains one of each audio book: Men Are from Mars, Women Are from\nVenus, What Your Mother Couldn\u2019t Tell You and Your Father Didn\u2019t Know,\nand Mars and Venus in the Bedroom\n0-694-51589-2 (abridged)\n\nMEN ARE FROM MARS, WOMEN ARE FROM VENUS REFLECTIONS\nInspirations to Enrich Your Relationships\n2 cassettes / 3 hours (abridged)\n------------\nGiven the new context, refine the original answer to better answer the question. If the context isn't useful, return the original answer."], "model": "text-davinci-003", "temperature": 0.0, "max_tokens": 256, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "n": 1, "best_of": 1, "logit_bias": {}}' message='Post details'
DEBUG:urllib3.connectionpool:https://api.openai.com:443 "POST /v1/completions HTTP/1.1" 200 400
https://api.openai.com:443 "POST /v1/completions HTTP/1.1" 200 400
DEBUG:openai:message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=3133 request_id=b19a3640e28cd07fec3b47e8b9a1cbb1 response_code=200
message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=3133 request_id=b19a3640e28cd07fec3b47e8b9a1cbb1 response_code=200
DEBUG:root:
John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater

John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater
DEBUG:root:> Refined response:
John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater

Refined response:
John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater
INFO:root:> [query] Total LLM token usage: 3957 tokens
[query] Total LLM token usage: 3957 tokens
INFO:root:> [query] Total embedding token usage: 12 tokens
[query] Total embedding token usage: 12 tokens

John Gray, Lenney Eiger, Charles Wood, Jacques Early, David Placek, Chris Johns, Ariana, Jerry Riefold, Clifford McGuire, Nicky Slater

Try using the similarity_top_k=<number> option inside the query call
If you want more control, you can also set a minimum similarity using something like similarity_cutoff=0.5 inside the query call

I will try this but in the 'default' mode should'nt all embeddings be iterated over automatically as stated in the documentation:

"An index can have a variety of query modes. For instance, you can choose to specify mode="default" or mode="embedding" for a list index. mode="default" will a create and refine an answer sequentially through the nodes of the list. mode="embedding" will synthesize an answer by fetching the top-k nodes by embedding similarity."
-https://gpt-index.readthedocs.io/en/latest/guides/usage_pattern.html#query-the-index

Can you help clarify this because all the tutorials online don seem to just run index.query without any additional arguments for Q&A so I am really confused if they are doing the right thing or not

@bluesky314 you are correct, it will iterate over all embeddings, but only the top_k most similar will be used when sending data to the LLM. By default, the top_k is 1.

Hmmm... something still does not make sense. Firstly tutorials like this use GPTSimpleVectorIndex to create an index over a list of documents. Would the default mode='default' and top_k=1 mean that all the embeddings of the top document are iterated over?
'but only the top_k most similar will be used when sending data to the LLM. By default, the top_k is 1.' Doesent this mean mode='default' is the same as mode='embedding' if top_k is a being used for both? Maybe I am confusing indexing documents vs indexing nodes...
If I want to iterate over the top 5 documents and top 10 embeddings in each then how would I do so?

I think you are misunderstanding. Once a list of documents is inserted into an index, a single embedding vector is calculated for that entire document. If the document ends up being split due to its length, then there's a single embedding for each chunk.
Now, when we query, we select the top_k chunks (also called nodes) that have the highest similarity with the query.
So you can't iterate over the "top 5 embeddings from the top 10 documents" with a single index. You can only iterate over the top_k most similar nodes.
Now, If you want more control over which set of documents you select chunks from, you can use composability and wrap a bunch of vector indexes with a top level vector index, assuming you set a summary for each sub index. There's a tutorial here covering this: https://gpt-index.readthedocs.io/en/latest/how_to/composability.html

What @logan-markewich said is spot on.
@bluesky314 re: "If I want to iterate over the top 5 documents and top 10 embeddings in each then how would I do so?", I would consider creating a SimpleVectorIndex for each document, and then calling doc_index.query(..., similarity_top_k=10) for each index, to satisfy your request. If you'd like to combine responses in some high-level fashion, you can also choose to use our composability framework.

@bluesky314 The main difference (at least to me) is that GPTSimpleVectorIndex computes all the embeddings when the index is created. The list index computes the embeddings on the fly, during the query, if the mode="embedding"
There's a few other misconceptions here:

Remember, input documents are split into nodes, these are two different things. The indexes only care about nodes once they are constructed.
ListIndex will iterate over all nodes (unless you use the embedding mode), which means it works for more than one document
VectorIndex will fetch the closest matching node(s)

I think you should just take some time to try it out, it will make a lot more sense as you use it more 👍🏻

thanks for all the help @logan-markewich! @bluesky314 if you want to do embedding lookup i'd use the vector indices, they're optimized for that use case. the list index does allow embedding lookup too (e.g. your point 2), but it's less fully supported.
for more questions please feel free to start a discussion on the discord channel! https://discord.gg/dGcwcsnxhU

authors: bluesky314 jerryjliu logan-markewich


text:
[Question]: I want to write my own prompt for TREE_SUMMARIZE

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Hi!
I'm trying to summarize a long document, using the (phenomenal) TREE_SUMMARIZE using Llama-2 from HuggingFace. The end command is: doc_summary_index.get_document_summary(documents[0].id_)
To my understanding, each chunk gets summarized in a tree manner. However, I have little control to the summarization prompt! Here's three different places where I need to be aware of the prompt passed in:

HuggingFaceLLM with parameter query_wrapper_prompt=SimpleInputPrompt("<|USER|>{query_str}<|ASSISTANT|>")
response_synthesizer with parameter text_qa_template = Prompt((
"Context information is below.\n"
"---------------------\n"
"{context_str}\n"
"---------------------\n"
"Given the context information and not prior knowledge, "
"summarize it. \n"
),
prompt_type=PromptType.QUESTION_ANSWER)
DocumentSummaryIndex.from_documents with parameter summary_query = (
"Give a concise summary of this document. Also describe some of the questions "
"that this document can answer. "
)

So, the final prompt, ends up being a puzzle of all of the above, right? How can I write ONE prompt in ONE place that includes basically one thing: {context_str}. Cause the {query_str} doesn't change as far as my document summarization is concerned. The query str is already in my prompt which is used for every chunk. Does that make sense?
What I've tried:

editing summary_query. For whatever reason, only the first line gets accepted. My summarization prompt is longer than one line/sentence.
Removing the query_wrapper_prompt=SimpleInputPrompt("<|USER|>{query_str}<|ASSISTANT|>"). This causes the summarization to produce an empty string (!). no clue why. even the slightest edit, will cause it to pop out empty.
Editing text_qa_template and passing in empty or almost-empty summary_query. Doesn't seem to work, for whatever reason.

Any advice or fixes or wisdom? Much appreciated :)

@Orescout the tree summarize mode uses the text_qa_template -- so customizing this is all you need to do
from llama_index import get_response_synthesizer

response_synthesizer = get_response_synthesizer(
    response_mode="tree_summarize",  # it looks like the index actually defaults to "compact"
    text_qa_template=CUSTOM_TEMPLATE,
    service_context=service_context  # optional, needed to propagate settings

index = DocumentSummaryIndex.from_documents(documents, ...., response_synthesizer=response_synthesizer)

In the code, you can see the summaries being built here, with the response synthesizer you passed in
https://github.com/jerryjliu/llama_index/blob/6e9a7b41db1adc2eb8b29be0b650b6842799ca28/llama_index/indices/document_summary/base.py#L145

I ran into a similar situation today which I chatted with you about, Logan. I thought the below would work at first.
query_engine = index.as_query_engine(response_mode="tree_summarize",                                       service_context=service_context,                                      summary_template=custom_chat_template)
But it turns out that I had to do this
`response_synthesizer = get_response_synthesizer(
response_mode="tree_summarize",
summary_template=custom_chat_template,
service_context=service_context,
)
query_engine = index.as_query_engine(response_synthesizer=response_synthesizer)
`
Note at first I wanted to set text_qa_template, according to the docs below. Seems to mention that should be used. But after digging through the source code I found that summary_template needs to be defined. I think with a few simple modifications, you could make the 3 line of code at the beginning work, but maybe the expectation is that one should their own response synthesizer.
https://gpt-index.readthedocs.io/en/stable/core_modules/query_modules/query_engine/response_modes.html#response-modes

@bSharpCyclist yea the docs should be updated, but also, I see no reason why the initial 3 line attempt didn't work. I can attempt to debug this

Thanks, @logan-markewich. This is what I saw, in retreiver_query_engine.py. I'm happy to try and submit a PR and do something meaningful in the open source community :D
    def as_query_engine(self, **kwargs: Any) -> BaseQueryEngine:
        # NOTE: lazy import
        from llama_index.query_engine.retriever_query_engine import RetrieverQueryEngine

        retriever = self.as_retriever(**kwargs)

        kwargs["retriever"] = retriever
        if "service_context" not in kwargs:
            kwargs["service_context"] = self._service_context
        return RetrieverQueryEngine.from_args(**kwargs)

You'd have to add support for summary_template in RetrieverQueryEngine.from_args I think. And then if passed, set it below when a response synthesizer isn't passed.
        response_synthesizer = response_synthesizer or get_response_synthesizer(
            service_context=service_context,
            text_qa_template=text_qa_template,
            refine_template=refine_template,
            simple_template=simple_template,
            response_mode=response_mode,
            use_async=use_async,
            streaming=streaming,
        )

@bSharpCyclist You you got it, just made a PR to fix this

source: gharchive/issue

authors: Orescout bSharpCyclist logan-markewich

license: MIT

license_type: permissive

license_source: github-api


text:
[Feature Request]: SparQL database implementation just like SQL implementation via SQLAutovectorQueryEngine

Feature Description
Would it be possible to query with SparQL queries just like with SQL? I want to do joint text to sparQL and semantic search with local LLMs.
Reason
No response
Value of Feature
No response

Also, is there a way to use different llm's for the query generation and for the answer generation?


text:
Fix attributes of length property for bound function

fix length property of bound function objects to be configurable (ECMA-262 v6, 19.2.4.1)
resolve #3615
JerryScript-DCO-1.0-Signed-off-by: HyukWoo Park hyukwoo.park@samsung.com

I would add the following ES6 test cases:
In this case changing the length of f affects the bound function:
function f(a,b,c) {}
Object.defineProperty(f, "length", { value: 30 });
var g = f.bind(1,2)
g.length // 29

In this case changing the length of f does not affect the bound function:
function f(a,b,c) {}
var g = f.bind(1,2)
Object.defineProperty(f, "length", { value: 30 });
g.length // 2

@zherczeg Thank you for the great suggestion. I fixed the test case following your comment.

source: gharchive/pull-request

repo: jerryscript-project/jerryscript

license_source: bigquery


text:
Failed to load dynamic library 'libopenpgp_bridge.so'

I tried the plugin recently and it works flawlessly on Windows. However when I try to build a project which depends on flutter-openpgp on Linux, the location of libopenpgp_bridge.so seems to be incorrect.
In my case I cannot find out libopenpgp_bridge.so in ${PROJECT_NAME}/build/linux/x64/${BUILD_FLAVOR}/bundle/lib/ with both debug and release build, thus getting flutter: Invalid argument(s): Failed to load dynamic library 'libopenpgp_bridge.so': libopenpgp_bridge.so: cannot open shared object file: No such file or directory output on debug console. Then I found that file at ${PROJECT_NAME}/build/linux/x64/${BUILD_FLAVOR}/plugins/openpgp/bundle/lib/ and copy it to the first one, letting openpgp back to work.
Could you please make a fix? So that we don't need to move that file manually every time.
Thanks.

Hi @eirtscience thanks for report the issue, im in vacacions now, but I will do when come back home

Hi !
I'm kind of having the same issue while running unit tests on a linux device but i can't use @eirtscience work around since unit test does not produce a linux executable...
Here is the stack trace producing the error :
Invalid argument(s): Failed to load dynamic library 'libopenpgp_bridge.so': libopenpgp_bridge.so: cannot open shared object file: No such file or directory
dart:ffi                                                    new DynamicLibrary.open
package:openpgp/bridge/binding.dart 125:33                  Binding.openLib
package:openpgp/bridge/binding.dart 25:16                   new Binding._internal
package:openpgp/bridge/binding.dart 16:45                   Binding._singleton
package:openpgp/bridge/binding.dart                         Binding._singleton
package:openpgp/bridge/binding.dart 21:12                   new Binding
package:openpgp/openpgp.dart 164:32                         OpenPGP.bindingEnabled
package:openpgp/openpgp.dart                                OpenPGP.bindingEnabled
package:openpgp/openpgp.dart 167:9                          OpenPGP._call
package:openpgp/openpgp.dart 264:22                         OpenPGP._keyPairResponse
package:openpgp/openpgp.dart 480:18                         OpenPGP.generate
package:classifid/src/services/open_pgp_service.dart 23:20  OpenPGPService.generateKeyPair
test/services/open_pgp_service_test.dart 24:54              main.
test/services/open_pgp_service_test.dart 23:63              main.
Could you consider working on resolving this issue please ?
Thanks

Hi @tpouriel cloud you run flutter doctor to get more details about you linux distro and version please

Hi @jerson. This is my configuration.
[✓] Flutter (Channel stable, 3.0.5, on Ubuntu 22.04.1 LTS 4.19.0-21-cloud-amd64, locale en_US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

Hi could you try with latest version https://pub.dev/packages/openpgp/versions/3.5.1

cc @eirtscience @tpouriel

Hi @jerson. It's not working for me... This is my error output now :
Invalid argument(s): Failed to load dynamic library '/root/fvm/versions/3.3.10/bin/cache/artifacts/engine/linux-x64/flutter_tester': /root/fvm/versions/3.3.10/bin/cache/artifacts/engine/linux-x64/flutter_tester: cannot dynamically load position-independent executable
dart:ffi                                                    new DynamicLibrary.open
package:openpgp/bridge/binding.dart 132:35                  Binding.openLib
package:openpgp/bridge/binding.dart 26:16                   new Binding._internal
package:openpgp/bridge/binding.dart 17:45                   Binding._singleton
package:openpgp/bridge/binding.dart                         Binding._singleton
package:openpgp/bridge/binding.dart 22:12                   new Binding
package:openpgp/openpgp.dart 164:32                         OpenPGP.bindingEnabled
package:openpgp/openpgp.dart                                OpenPGP.bindingEnabled
package:openpgp/openpgp.dart 167:9                          OpenPGP._call
package:openpgp/openpgp.dart 264:22                         OpenPGP._keyPairResponse
package:openpgp/openpgp.dart 480:18                         OpenPGP.generate
package:classifid/src/services/open_pgp_service.dart 24:20  OpenPGPService.generateKeyPair
test/src/services/open_pgp_service_test.dart 25:54          main.
Just to let you know, I updated my Flutter version meanwhile to stay compatible with your plugin dependencies :
[✓] Flutter (Channel stable, 3.3.10, on Ubuntu 22.04.1 LTS 4.19.0-21-cloud-amd64, locale en_US)

Hi @tpouriel I just tested on my ubuntu and its working fine, also the github action was succesfully executed https://github.com/jerson/flutter-openpgp/actions/runs/3790806984/jobs/6445728036
also I tested using FVM with 3.3.10  and it worked, not sure that could be the issue for you
btw, is this issue happening also in release mode or only in dev mode ?
➜  components flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on Ubuntu 22.04.1 LTS 5.15.0-56-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!

Hi @tpouriel @eirtscience we have a PR for this issue, I'm going to be testing and then merge and release a new version, https://github.com/jerson/flutter-openpgp/pull/50

New version released https://pub.dev/packages/openpgp/versions/3.5.3 please try with this one, feel free to reopen the issue if its needed

Hi @jerson !
I just tried to run my unit tests using the version 3.5.3 and it did not go well.
Here is the error output i get now :
Invalid argument(s): Failed to load dynamic library 'build/linux/x64/debug/bundle/lib/libopenpgp_bridge.so': build/linux/x64/debug/bundle/lib/libopenpgp_bridge.so: cannot open shared object file: No such file or directory

My guess is that it worked on your tests_macos.yml file because you priorly did some integrations tests that made a build phase. And since in my case i'm only doing unit tests, there is no such build folder.

Hi @tpouriel please try run flutter run -d linux,  and then run the tests

authors: eirtscience jerson tpouriel

repo: jerson/flutter-openpgp


text:
TextEditor.displayBuffer is deprecated.

TextEditor.prototype.displayBuffer has always been private, but now
it is gone. Reading the displayBuffer property now returns a reference
to the containing TextEditor, which now provides some of the API of
the defunct DisplayBuffer class.
TextEditor.displayBuffer (<embedded>:6:61)
<unknown> (C:\Users\Wanty\.atom\packages\fold-comments\lib\fold-comments.coffee:32:27)
Workspace.observeTextEditors (<embedded>:11:428905)
Object.activate (C:\Users\Wanty\.atom\packages\fold-comments\lib\fold-comments.coffee:30:31)
Package.activateNow (<embedded>:11:3288314)
<unknown> (<embedded>:14:1879)

Dupe #27

repo: jescalan/atom-fold-comments


text:
Huge Refactor

This is not quite ready for merge yet, but I want to have it open so I can get feedback. What do you think so far, @jenius?

Okay, so the aliasing is causing some tests to fail - I'm not exactly sure what's happening, but if I change
density to rupture-density and then alias if not rupture.no-conflict then density = rupture-density (and subsequently for all friends), the density variable inside a few of the mixins gets overwritten to the value of rupture-retina. Stylus is just getting more and more weird.

Looks good to me so far. Might as well squash those two commits together since they are doing the same thing as well.

As soon as I figure out this no-conflict issue :+1:

hey @jenius I'm having some trouble here that perhaps you can take a look at (I've already squashed the two commits you asked me to) - I'm trying to implement a rupture-no-conflict flag that when set to true, forces rupture to not define any variables without the rupture- prefix - but the way I've changed things around is causing some marginal errors and I'm not so sure I can tackle this without better opinion

What are the errors it's causing? The code in the WIP commit looks pretty straightforward to me...

That's the thing - it's kind of tough to figure that out:

I was hoping you could checkout into this branch and see for yourself?

Ah that's weird. Have you done the standard logging of rupture-retina and such? I could but it might be a bit as I have some other things I need to clean up.

I've gone through all those debugging steps and it just gets weirder and weirder. Pretty sure you know the feeling after all the sourcemap stuff you're doing for Roots, lol. Take your time, Rupture has basically neared it's final feature set, the only thing really missing is height based queries and this refactor - so there's no rush.

Is this PR still in the works? It's been over a year and a no-conflict mode is badly needed.

@BerkeleyTrue no it isn't, but you are welcome to pick it up if you're interested!

As i see this issue is resolved in this PR. Please when you merge this PR, close the issue.

authors: BerkeleyTrue W0LFMAN declandewet jenius jescalan

repo: jescalan/rupture


text:
China Union Pay Issue

It looks the dist/release is missing the jp-card-unionpay class within the Card.prototype.cardTemplate init.
See here: (Note that I actually broke this down and made it readable... also I adjusted some of the strings in here (jp-card-elo, jp-card-dankort, jp-card-jcb) so that they were in-line like the others.
Card.prototype.cardTemplate = '' +
	'
' +

		'
' +

			'
' +

				'

e

l

o

' +

				'
Visa
' +

				'
Visa
Electron

' +

				'
Mastercard
' +

				'
Maestro
' +

				'

' +

				'
discover
' +

				'

' +

				'

' +

				'

J

C

B

' +

				'
' +
					'

' +
					'
{{cvc}}
' +
					'
{{number}}
' +
					'
{{name}}
' +
					'
{{expiry}}
' +
				'
' +

			'
' +

			'
' +
				'

' +
				'
{{cvc}}
' +
				'

' +
			'
' +

		'
' +

	'
';

@jessepollak is this a known issue or..? I looked back at some previous issues, specifically #99 and #192 but it doesn't look like Union Pay ever made it into the system fully.
Should I proceed by opening a PR?

Cash

Cash

Cash

Fixed in 2.5.0

authors: Phuchong1 QuintonC kimchakabuto melloware

repo: jessepollak/card

license: mit


text:
Use the atom-text-editor tag instead of the editor class.

In index.less: Use the atom-text-editor tag instead of the editor class.

This is a duplicate of #38 which has been fixed in v0.3.2.

authors: GabrielCabrera jesseweed

repo: jesseweed/seti-syntax


text:
Unhide code comments in generated HTML

I disagree with the rationale for #38, and the effects of the associated code changes.
Sometimes I put in code comments that are very specific to a particular line; sometimes I adopt code that was not originally in literate.  In both cases it would be useful to me to see the comments in the preview; it was surprising when they weren't there.
Perhaps an intermediate solution would be to add an option that controlled whether or not code comments are tossed for HTML.
If you decide to retain the feature anyway, it might be better to eat the comments completely.  The whitespace associated with them remains in the HTML output, which is a little weird.  I haven't been able to trace exactly how that happens.  Perhaps the data-line value in, e.g., <code data-line="233"... is actually controlling the vertical position, and is set before the comment is removed.

An option would be useful here indeed.

authors: RossBoylan jesterKing

repo: jesterKing/literate


text:
ON CALL COMPUTATION

ALL ONCALL dapat wala remittances,
-overtime rate nila regular rate lang wala additional 25%

ok as of 8/15/16 payroll

repo: jetdario/hrms


text:
Please put this action on Github Marketplace

It is extremely useful.

@AlephAlpha  Released 🎉 https://github.com/marketplace/actions/trunk-action , please try

authors: AlephAlpha jetli

repo: jetli/trunk-action


text:
Add HTTP01 solver pod priority class support

Is your feature request related to a problem? Please describe.
In namespaces where resource quota have been set the solver pods often cannot be scheduled because the set limits have been reached.
Describe the solution you'd like
As of Kubernetes 1.12 resource quota can be set for specific priority classes. Adding support for setting the priority class to solver configurations would allow the pods to be scheduled without affecting or being affected by the limits for other objects in the same namespace.
Describe alternatives you've considered
Alternatively we looked at setting a different namespace for the solver, however this seems to be a topic of discussion considering the number of different issues and PRs around this.
Additional context
N/A
Environment details (if applicable):

Kubernetes version (e.g. v1.10.2): v1.15.x, v1.16.x
Cloud-provider/provisioner (e.g. GKE, kops AWS, etc): kops AWS/GCE
cert-manager version (e.g. v0.4.0): v0.15.1
Install method (e.g. helm or static manifests): helm

/kind feature

I think this can be done using https://cert-manager.io/docs/configuration/acme/http01/#podtemplate
If so happy to accept a documentation PR to add a priority class specific example!

The docs you link to seem to say that you can only use the podTemplate to override labels, annotations and the nodeSelector, as at the end it says: "No other fields of the podTemplate exist."
I did not test it, though.

The API reference states:
Only the ‘nodeSelector’, ‘affinity’ and ‘tolerations’ fields are supported currently. All other fields will be ignored.
I've attempted to edit an issuer on one of our clusters, however this results in the following error:
# * : Invalid value: "The edited file failed validation": ValidationError(ClusterIssuer.spec.acme.solvers[0].http01.ingress.podTemplate.spec): unknown field "priorityClassName" in io.cert-manager.v1alpha3.ClusterIssuer.spec.acme.solvers.http01.ingress.podTemplate.spec

Indeed you're right!
/area acme/http01
/priority important-soon

/assign

authors: meyskens ncgee timstoop

repo: jetstack/cert-manager


text:
Certificate wait for removed Order resource on AKS

Describe the bug:
I had issue with DNS challenges for Letsencrypt on our AKS cluster. I hope it was already solved but Challenge and Order resource was still in stuck so I removed this resources for another renew attempt but I can still see in Certificate resource:
 Message:               The certificate request has failed to complete and will be retried: Failed to wait for order resource "acme-crt-9zf88-1093887857" to become ready: order is in "invalid" state:

acme-crt-9zf88-1093887857  was Order resource which was removed.
Could you pls somebody help me how to remove "waiting" certificate on removed resource and try another issuing ?
Thanks a lot for help
Environment details::

Kubernetes version: v1.17.11
Cloud-provider/provisioner: Azure AKS
cert-manager version: v0.16.1
Install method: helm

/kind bug

Problem solved. There was temporarry issue during Challenges.
So I have to remove invalid resources   : challenges,order and certificaterequests.
It was unblock request new cert.


text:
'Runtime' validation support

We now have validation for API resources, however there are some configuration cases that we cannot properly test for as part of validation.
Namely, we cannot determine whether the Certificate is for an ACME Issuer vs a CA issuer, and provide Issuer-specific validation of Certificates.
Some examples of cases we currently cannot/do not validate:

With #722, we support custom key algorithms. However the ACME spec only supports RSA, so we should fail early in the certificates controller when this configuration is detected.

With #520, we accept a custom certificate duration. This is not possible in all cases when using ACME.

We'll soon support custom key usages - again, these are not possible with ACME.

We need to include some form of 'runtime validation', i.e. validation that occurs at the start of the controller's sync cycle instead of before persisting the resource into the apiserver/etcd.

/kind feature
/area api


text:
can you add cocoapods?

can you add cocoapods?

@wangrui460 Thank you very much for the suggestion!  Previously I tried and I had trouble figuring it out, but yes, I can try.
In the meantime, you can use all of PermissionSwiftUI through Swift Package Manager!

@wangrui460 You can install PermissionsSwiftUI by Cocoapods: pod 'PermissionsSwiftUI'🙌. If there is any issue, feel free to follow up.

repo: jevonmao/PermissionsSwiftUI


text:
🛑 Mesadoko - Website is down

In c522bf4, Mesadoko - Website (https://mesadoko.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mesadoko - Website is back up in ab8fcdc after 2 hours, 10 minutes.

repo: jfcatano/disruptive-uptime


text:
Customize Tab

How do you change the color of the tabs selection bar and click animation? from the default yellow?

you can use the following css selectors :

.jfx-tab-pane .tab-header-area .jfx-rippler{
	-fx-rippler-fill :RED;
}

.jfx-tab-pane .tab-header-area .tab-selected-line{
	-fx-stroke : RED;
}

Thanks a lot! that was a big help.

I'm not sure if this is something new or if that was a typo but for anyone wondering why the rippler color wont change in the newer versions, you can use this instead...
.jfx-tab-pane .tab-header-area .jfx-rippler{
    -jfx-rippler-fill: RED;
}

I'm using the 1.7.0 version of jfoenix, but i can't change the color of the tabs selection bar  :(
Here is the code i'm using:
.jfx-tab-pane
{
-fx-padding: 1px;
-fx-background-color: blue, -fx-control-inner-background;
-fx-background-insets: 0, 1;
}
.jfx-tab-pane .headers-region
{
-fx-background-color: cornflowerblue;
}
.jfx-tab-pane .tab-header-background
{
-fx-background-color: cornflowerblue;
}
.jfx-tab-pane .tab-header-area .jfx-rippler
{
-jfx-rippler-fill: orange;
}
.jfx-tab-pane .tab-header-area .tab-selected-line{
-fx-stroke: red;
}
Many thanks.

Hello,
well JFoenix css properties has been updated, we replaced the prefix "-fx" with "-jfx" to distinguish jfoenix properties from original JavaFX properties.
Regards,

For some reason, this doesn't update the selected line's color.
.jfx-tab-pane .tab-selected-line
{
-fx-stroke: #33ffff;
}
Please, correct this script...

@Kooldeji
.jfx-tab-pane .tab-selected-line {
    -fx-background-color: #33ffff;
}

@skmedix
Is it possible to Centralize the tabs on the top bar and also change their text fill. The regular
-fx-text-fill: #color;
ain't working.

@Kooldeji Yeah, sure
.jfx-tab-pane .tab .tab-label {
    -fx-font-weight: normal;
    -fx-text-fill: #424242;
    -fx-font-size: 16;
}

.jfx-tab-pane .tab:selected .tab-label {
    -fx-text-fill: #000;
}

I didn't try tab alignment, but when I'll have more free time I'm gonna check it.

how could i change the "space" between tabs in JFXTabpane via css or java?

authors: Kooldeji Natreve Sashie ayushchadha23 jfoenixadmin peteralien skmedix

repo: jfoenixadmin/JFoenix


text:
Security guarantees

I am wondering if this library has the same security guarantees as the Ruby version. If I run an untrusted template from a client, is it dangerous? Is security a design goal in addition to the API compatibility?

Hi,
Python Liquid has indeed been designed and implemented with the same security goals as Ruby Liquid. Notably:

Python Liquid is non-evaling. That is, it does not use eval in any way whatsoever.
Python Liquid does not compile templates to Python code, as you might be familiar with from Jinja2.
Python Liquid will never call functions or methods on arbitrary objects (drops) added to a render context. Instead relying on the Mapping  interface.
Python Liquid creates a new render context for every template so data does not leak from one template to another.
Template local and global variables use isolated namespaces, so templates can't mutate "global" data.
All built-in filters are pure, so they can't mutate global data either.

It's still entirely possible for developers to deploy an application using Python Liquid in an "unsafe" way. Here I'm thinking of custom filters or tags that don't respect the template global namespace, or "drops" that do impure things with some of Python's magic methods. And, of course, all sorts of user input will need to be escaped when handling HTML templates.
Adding something to this effect to the documentation is on my to-do list. As is a security policy for the GitHub repository.

Thanks @jg-rp. That is really helpful. Really appreciate all your hard work on this library. It's amazing.

You are welcome, @taylor-cedar.
Find the new security guidelines at https://jg-rp.github.io/liquid/guides/security, and the security policy at https://github.com/jg-rp/liquid/blob/main/.github/SECURITY.md.

authors: jg-rp taylor-cedar

repo: jg-rp/liquid


text:
Grammar printer

Need to print out grammars, so that other people can debug grammar issues without looking at code

Fixed in 0.1.2


text:
Use finer grained Pandoc import statements

A full import of the Pandoc library leads to name collisions with Pandoc
v1.18, so only required functions and datatypes are imported.

What are the same collisions?  I don't recall seeing any in
the past, and if some have been introduced, I'd like to know
what they are.

Chapter from the Division type in Text.Pandoc.Options caused the collision (my bad). I noticed because the pandoc appveyor test were failing. Sorry, I should have notes that in the commit message.

I suppose we could still change the name in
Text.Pandoc.Options, but I think the solution you gave here
is fine.
+++ Albert Krewinkel [Oct 25 16 12:25 ]:

Chapter from the Division type in Text.Pandoc.Options caused the
collision (my bad). I noticed because the pandoc appveyor test were
failing. Sorry, I should have notes that in the commit message.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References

https://github.com/jgm/pandoc-citeproc/pull/260#issuecomment-256149653
https://github.com/notifications/unsubscribe-auth/AAAL5DWMuYPGP_L1BZV4PV7WI6SwZCgzks5q3le9gaJpZM4KbBgN

authors: jgm tarleb

repo: jgm/pandoc-citeproc


text:
Text no longer wrapping by the cell boundaries when spacing left / right are set

I am trying to render some cells with text inside it using Java version of mxGraph 3.4. The text are horizontally and vertically centered, and wrapped (whiteSpace = wrap, and overflow = visible). If I don't use spacing, the results are perfect.

If I use spacing (spacingLeft in this case), I expect them to still get wrapped by the opposing cell border, like this:

However, it seems that the spacing causes the text to also get wrapped later, way after the border.

Same thing happened if I used spacingRight. The width reserved to the text remained the same, and instead of the text starting at left border, they started outside it, seemingly equivalent to the size of spacingRight.

(I have the code I use to render the diagram in Java, but it's quite lengthy so I will add them later if requested.)
Is this a bug or an intentional behavior? Or maybe I set one of the styles wrong?

Unfortunately, we don't provide support for the Swing rendering code, only the JavaScript code. I've updated the README to reflect that.

authors: danbenos davidjgraph

repo: jgraph/mxgraph


text:
Supported Nested groups

Hi!
In my use case I have a sortable set nested inside another array of objects. Something like:
model() {
  return {
    groups: [
      {
        id: 0,
        items: [
          { name: 'Uno' },
          { name: 'Dos' },
          { name: 'Tres' },
          { name: 'Cuatro' },
          { name: 'Cinco' }
        ]
      },{
        id: 1,
        items: [
          { name: 'Eins' },
          { name: 'Zwei' },
          { name: 'Drei' },
          { name: 'Vier' },
          { name: 'Fünf' }
        ]
      }
    ]
  };
}

In the current code, I cannot specify which group the reorderItems action handler should target, since only the newOrder array is given.
Could we modify the sortable-group component to accept an additional source variable, so that the reorderItems know which group it is suppose to modify?
I've created a branch here.

+1
I also have such a use case

I’ve been considering adding a model attr to sortable-group as proposed in #22. Would that suit your needs?

I think so

@rsaccon cool. I’m hoping to put a bit of time into this soon but if anyone would like to give it a try first, I would welcome a pull request :smile:

Sure. I've opened a pull request #28.

Closed by #28

authors: jgwhite rsaccon ujamer

repo: jgwhite/ember-sortable


text:
最新版本更新后出现 GDK问题

程序更新后，运行出现以下问题
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 711: illegal
multibyte sequence

同样出现这样的问题，求解。

@yswcdmm @JaeLiiin 把配置文件里面的中文删掉

有raw_proxy和use_proxy两种，接口返回后者

authors: JaeLiiin jhao104 yswcdmm


text:
一直报这个错误，什么问题导致，是没抓取到代理？

2020-06-19 11:39:45,408 UsefulProxyCheck.py[line:38] INFO UsefulProxyCheck - thread_6  : start
2020-06-19 11:39:45,408 UsefulProxyCheck.py[line:38] INFO UsefulProxyCheck - thread_7  : start
2020-06-19 11:39:45,409 UsefulProxyCheck.py[line:38] INFO UsefulProxyCheck - thread_8  : start
Exception in thread thread_7:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "../Schedule/UsefulProxyCheck.py", line 48, in run
proxy_obj, status = checkProxyUseful(proxy_obj)
File "../ProxyHelper/ProxyUtil.py", line 27, in checkProxyUseful
if validUsefulProxy(proxy_obj.proxy):
AttributeError: 'NoneType' object has no attribute 'proxy'

跑过历史版本的话需要手动清空下数据库，然后代码拉发布的文档分支，慎用master分支


text:
Enabling scores causes the prompt to move if the line is too long

Example command: echo $(find . | fzy -s)
If you run the above and one of the matches exceeds the length of the line then the prompt moves further down the terminal.
In normal operation (i.e. without -s) the line length is clipped to the columns on the display. When matches are enabled it seems that the extra space required to show scores was not factored into the line clipping algorithm.
Tested on MacOS 10.12.4, zsh 5.3.1 and fzy 0.9

I believe this is fixed by #54. :tada:
Feel free to re-file if it is not

Yup, that appears to have to done it. Thanks @neuschaefer (and @jhawthorn for the tool in the first place ;) )!

authors: casr jhawthorn

repo: jhawthorn/fzy


text:
pg_stat_statements additions

This makes some additions to the Database Information Dashboard

Dedicated columns for Index & Data Size for Tables
Performance Improvements for Mileage & Odometer
Individual Index Size

New Section showing stats gathered via pg_stat_statements
This has been added to the contribution guide of TeslaMate lately and helps to diagnose sql statement performance

@jheredianet - rebased and ready for merge - will rebase #102 afterwards


text:
Rmdup

The pull request is ready to be merged.
The details of the pull request:
Deleted the duplication of the documentation in the comments of the code and markdown files.

Pull Request Test Coverage Report for Build 472

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.06%) to 96.521%

Files with Coverage Reduction
New Missed Lines
%

autokeras/graph.py
2
97.21%

Totals

Change from base Build 470:
-0.06%

Covered Lines:
1637

Relevant Lines:
1696

💛  - Coveralls


text:
use the parameter "augment" in the TextClassifier

This pull request resolves #264
The pull request is ready to be merged.

Pull Request Test Coverage Report for Build 783

3 of 7 (42.86%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 94.684%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

autokeras/text/text_supervised.py
3
7
42.86%

Totals

Change from base Build 774:
-0.04%

Covered Lines:
2084

Relevant Lines:
2201

💛  - Coveralls

@woj-i Thank you for your contribution.
The augment has a different meaning than the preprocessing of the text.
Augment should mean increase the number of training examples by generating some new ones.
Maybe we should just delete this default parameter of augment.
Thanks.

@woj-i The concept of autokeras is to hide all the preprocessing details from the user. If you want to pass the customized processed data to it, you need to use the CnnModule class to directly do the neural architecture search. Thanks.
Sorry for the confusing documentation. We will update it soon.

authors: coveralls jhfjhfj1 woj-i


text:
raml2wiki can't convert to text file!

example:
$ raml2wiki example_github.raml > example.txt
: No such file or directory

same error for me, but my raml-cop, raml2md & raml2html works fine! :(

Have updated the npm. I don't have a mac handy to test but I just run it in a linux terminal with no issues . Can you test the version just published?
james@lo1:/home$ sudo npm install -g raml2wiki
[sudo] password for james:
/usr/bin/raml2wiki -> /usr/lib/node_modules/raml2wiki/lib/raml2wiki.js
raml2wiki@0.1.6 /usr/lib/node_modules/raml2wiki
├── commander@2.8.1 (graceful-readlink@1.0.1)
├── handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6)
└── raml2obj@0.3.0 (raml-parser@0.8.11)
james@lo1:/home$ raml2wiki
Error: You need to specify the RAML input file
Usage: raml2wiki [options] [RAML input file]
Options:
-h, --help             output usage information
-i, --input [input]    RAML input file
-o, --output [output]  Wiki Markup output file

Fixed!
thanks you @jhitchcock

authors: ahjdzx jhitchcock y0an


text:
Error trying to translate a text file with german text to english using NLLB

Which OS are you using?

OS: Ubuntu 24.04.1 LTS
Whisper-WebUI installed with

git clone https://github.com/jhj0517/Whisper-WebUI.git
docker compose build
docker compose up
T2T Tranlation -> NLLB
Model: facebook/nllb-200-distilled-600M
Source language: German
Target Language; English
Error:
whisper-webui-app-1  | Error translating file: 'WriteTXT' object has no attribute 'to_segments'
whisper-webui-app-1  | Traceback (most recent call last):
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/gradio/queueing.py", line 624, in process_events
whisper-webui-app-1  |     response = await route_utils.call_process_api(
whisper-webui-app-1  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/gradio/route_utils.py", line 323, in call_process_api
whisper-webui-app-1  |
whisper-webui-app-1  |     output = await app.get_blocks().process_api(
whisper-webui-app-1  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/gradio/blocks.py", line 2015, in process_api
whisper-webui-app-1  |     result = await self.call_function(
whisper-webui-app-1  |              ^^^^^^^^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1562, in call_function
whisper-webui-app-1  |     prediction = await anyio.to_thread.run_sync(  # type: ignore
whisper-webui-app-1  |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
whisper-webui-app-1  |     return await get_async_backend().run_sync_in_worker_thread(
whisper-webui-app-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread
whisper-webui-app-1  |     return await future
whisper-webui-app-1  |            ^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 943, in run
whisper-webui-app-1  |     result = context.run(func, *args)
whisper-webui-app-1  |              ^^^^^^^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/venv/lib/python3.11/site-packages/gradio/utils.py", line 865, in wrapper
whisper-webui-app-1  |     response = f(*args, **kwargs)
whisper-webui-app-1  |                ^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  |   File "/Whisper-WebUI/modules/translation/translation_base.py", line 99, in translate_file
whisper-webui-app-1  |     segments = writer.to_segments(fileobj)
whisper-webui-app-1  |                ^^^^^^^^^^^^^^^^^^
whisper-webui-app-1  | AttributeError: 'WriteTXT' object has no attribute 'to_segments'

Hi, @muser-ux. Thanks for reporting the bug!
This is fixed in #409.
Please feel free to re open if you're still having the problem!


text:
More verbose error messages within promises

This may be more of a question for upstream promises library, but is there anyway to get a more informative stack trace within errors? (file names/line numbers for the error that promice value is referring to). I have my app inside of a marty .when() to make sure a user is logged in (this may be an antipattern but I'm not really sure of a better way to handle in flux) so pretty much every error I experience is now routed into the promises and it's a bit tricky to debug
(the error at play is actually in a flux source file, the reference to user may look it like it's an issue with the flux setup but that this.state.user.when actually works fine, just introduced an error later on as an example)

You're not alone on this one, I've been getting feedback from various people that debugging issues can be a pain.
Problem is promises are kind of designed for catching errors and rejecting them... If I added some logging around store action handlers and StateMixin#getState giving some context will that help things?

That sounds great to me!
I eventually found that if I dig into the promise itself, a parameter called "stack" had some clues to where to find errors. It's originally hidden and needs to be clicked on to expand. If the filename/line number inside of that stack could be pulled all the way up to the top level error thrown by promise somehow, that would be nice as well.
!(http://f.cl.ly/items/05100B1X0E2d1E0D3f20/Image 2015-02-13 at 4.47.26 PM.png)[http://f.cl.ly/items/05100B1X0E2d1E0D3f20/Image 2015-02-13 at 4.47.26 PM.png]

Ah nice, hadn't seen that before!
I will look into this over the weekend and try and improve the debugging story

thanks so much james, appreciate your help

I might also suggest a look at https://github.com/kriskowal/q + setting Q.longStackSupport = true.  I actually am wrapping the ajax call in a Q promise in my *API and it is working very well.

Marty v0.8.12 should have improved logging for exceptions. Let me if that helps or not

Yes! it is easier to debug now. Thanks for your help!

:+1:

repo: jhollingworth/marty


text:
Better error handling

This PR should fix #163, #157, #152 and #127 which I'm hoping will make everything a lot better
Changes

To dispatch an action you use this.dispatch(ACTION_TYPE, ...args)
You can now dispatch from state sources eliminating the need for source action creators
Action creators are no longer wrapped in a promise so error handling should be easier
We no longer dispatch {Action Type}_STARTING, {Action Type}_DONE or {Action Type}_FAILED. Instead Marty.createConstants will automatically create {Action Type}_STARTING, {Action Type}_DONE or {Action Type}_FAILED as well as {Action Type} constants for you
We don't proxy action creators which makes stepping through code easier
The old invokable constants style still works but is depreciated. I've added documentation about how to migrate
I've added some documentation about how to handle errors (Could do with expanding upon a bit)

In one example you are dispatching DONE/FAILED in the actionCreator, in another you do it from the state source (whether that be via source action creators or dispatching directly). What's the rule of thumb for seperation here? Writes are handles by the actionCreators and fetches are handled by the state sources?

@mickhansen you're right, the distinction is reads and writes.
Up to now we've had the concept of source action creators which are responsible for handling state changes. I've always felt its a bit over kill to have a whole file just to get around a cyclic dependency issue so thought it would make sense to allow state sources to be able dispatch their own actions.
What do you think? Does it make sense to you?

@jhollingworth they do feel a bit of overkill. Whether or not it's perfect Flux design i couldn't possible comment on.
I think it makes sense seperating writes and reads like that, although ideally from a CQRS standpoint you probably wouldn't want writes and reads mixed in the state source, but i think this way is a bit more terse and workable.
It's taken me a good while to wrap my head around Flux and the ideas imposed by Flux even by using a good a framework as Marty, so it might be worth pointing out how writes and read success/fail handling is "supposed to be" in Marty.

@jhollingworth Will I be able to parse error response body? I'm asking because in version 0.8.X the service I'm consuming returns in the body the list of errors as JSON. When response status is >= 400 is not parsed:
return fetch(options.url, options).then(function (res) {
  if (res.status >= 400) {
    throw res;
  }

  if (isJson(res)) {
    return res.json().then(function (body) {
      res.body = body;

      return res;
    });
  }

  return res;
});

and i get undefined if I try to do something like:
.catch(function (res) {
      return UsersActionCreators.serverError(res);
 });

Am I doing something wrong? What's the correct approach to get data from the body? Will this be changed with your commits (i haven't found the >=400 check)?

@AlanVerbner yeah, thats completely gone in v0.9. We're also going to be introducing hooks which will allow you to modify http requests before their sent and responses before their passed on

@mickhansen completely agree with you on splitting out reads/writes à la CQRS. If I could find a terse way of doing this that I'd be really keen.
Either way I will add something to the guide about reading and writing

So one thing we could do is introduce the concept of 'Queries' which are responsible for orchestrating requests to get data.
var UserQueries = Marty.createQueries({
  getUser(id) {
    return this.get('/users')
     .then((res) => this.dispatch(UserConstants.RECIEVE_USERS, res.body))
     .catch((err) => this.dispatch(UserConstants.RECIEVE_USERS_FAILED, err));
  }
});

var UserStore = Marty.createStore({
  recieveUser(user) {
    this.state[user.id] = user;
    this.hasChanged();
  }
  getUser(id) {
    this.fetch({
      id: id,
      locally() {
        return this.state[id];
      },
      remotely() {
        return UserQueries.getUser(id);
      }
    })
  }
})

They are pretty much identical to action creators however they help enforce the difference between reads (queries) and writes (actions). It also allow us to get around the cyclic dependency without having 'source action creators'.
Also, it would be interesting to prevent you from returning anything from an action creator to help enforce the notion that action creators are for propagating state through the dispatcher.
What do you think?

@jhollingworth I think that could make a lot of sense. It also allows complete decoupling of the state source - And allow you to use whatever data layer you'd like.

authors: AlanVerbner jhollingworth mickhansen


text:
Setting up googleslides refreshing script

Summary
This is a work in progress for having a script that will link up code output images to google slide images.
Related to #46
There are two scripts here now:

scripts/google_slide_png_downloader.R - It downloads all the PNG for a given --slide_id

scripts/google_slides_image_linker.R - It refreshes code output images for a given --slide_id and stores  an image key file in the resources folder. This image key file stores the the image's URL, image's objectID, the slide page ID that the image is being stored on.

It grabs images from their github URL -- the idea being that as changes are merged to main the github actions will run this script to refresh everything from the branch being merged (and also will call google_slide_png_downloader.R to download the latest files).
When this script is ran, it will create a new slide for any code output images that don't have slides yet (according to the image key file) and then will refresh all code output images that do have slides.
I say code output images because right now the idea is to point it to the _bookdown_files folder where code output images are stored, but really it would do the same action for any png file in there that you'd point it to.

What needs to be developed here:
Google authorization doesn't work from Docker #49 which means that this will fail unless I pushed the .httr-oauth file. I don't mind doing that, but we need to think of a way for people to set up the httr-oauth file without it being too unwieldy.
Right now the process is, open RStudio, run rgoogleslides::authorize(), follow the steps to authorize Google, then you can use the resulting .httr-oauth  file from a Docker container.

@muschellij2 Do you have any comments about these scripts? I'm operating on the idea that the httr-auth file for each repo will need to be pushed to the git repo and this will be something someone would have to set up upon starting a new google slide deck and new git repo.

The big issue is whether the .httr-oauth is encrypted or not.  If not, someone with the .httr-oauth can be you wrt Google.  It's not clear where this is addressed.

The big issue is whether the .httr-oauth is encrypted or not. If not, someone with the .httr-oauth can be you wrt Google. It's not clear where this is addressed.

It's certainly not human-readable, but I don't know that that is the same as being well-encrypted and I am not sure how to tell how dangerous it is to have online.

This should work fine from GitHub actions, what still needs to be figured out is the authorization bits for running locally.
This being said, I don't know how much running the scripts locally will be a necessary thing so I'm not going to hold up this PR for that.
I will write temporary instructions for the janky way of how someone could get google auth and run this locally.
But long term, I'll want to figure out a better solution for #49.


text:
Add a contributing.md file

Some file that introduces collaborators to this project would be great. It's a bit confusing about how to add material if you are unfamiliar with the project.

We need more direct instructions and easier tools to invite collaborations for this repo. We can borrow github actions, tools and their descriptors from https://github.com/jhudsl/OTTR_Template wherever would be helpful.

I think this is done. I think we can improve it though :)

authors: avahoffman cansavvy


text:
Evaluator.TagEndsWith and Tag disagree in case-sensitivity

In jsoup 1.12.1, when a document is parsed using the XML parser, Document.select behaves differently when selecting elements with mixed case and namespace. Using the selector *|mixedCase, it is not possible to select the elements.
In QueryParser.byTag, the tag names in the selector are normalized.
In Evaluator.TagEndsWith.matches, the comparison is case-sensitive.
In Evaluator.Tag.matches, the comparison is case-insensitive.
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.parser.Parser;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class JsoupCaseSensitivityTest {

	private final String mixedCase =
		"<n:mixedCase>text</n:mixedCase>";
	private final String lowercase =
		"<n:lowercase>text</n:lowercase>";

	@Test
	public void html_mixed_case_simple_name() {
		Document doc = Jsoup.parse(mixedCase, "", Parser.htmlParser());

		assertEquals(0, doc.select("mixedCase").size());
	}

	@Test
	public void html_mixed_case_wildcard_name() {
		Document doc = Jsoup.parse(mixedCase, "", Parser.htmlParser());

		assertEquals(1, doc.select("*|mixedCase").size());
	}

	@Test
	public void html_lowercase_simple_name() {
		Document doc = Jsoup.parse(lowercase, "", Parser.htmlParser());

		assertEquals(0, doc.select("lowercase").size());
	}

	@Test
	public void html_lowercase_wildcard_name() {
		Document doc = Jsoup.parse(lowercase, "", Parser.htmlParser());

		assertEquals(1, doc.select("*|lowercase").size());
	}

	@Test
	public void xml_mixed_case_simple_name() {
		Document doc = Jsoup.parse(mixedCase, "", Parser.xmlParser());

		assertEquals(0, doc.select("mixedCase").size());
	}

	@Test
	public void xml_mixed_case_wildcard_name() {
		Document doc = Jsoup.parse(mixedCase, "", Parser.xmlParser());

		// FIXME: should be 1, to behave in the same way as lowercase_wildcard_name.
		assertEquals(0, doc.select("*|mixedCase").size());
	}

	@Test
	public void xml_lowercase_simple_name() {
		Document doc = Jsoup.parse(lowercase, "", Parser.xmlParser());

		assertEquals(0, doc.select("lowercase").size());
	}

	@Test
	public void xml_lowercase_wildcard_name() {
		Document doc = Jsoup.parse(lowercase, "", Parser.xmlParser());

		assertEquals(1, doc.select("*|lowercase").size());
	}
}

Jsoup 1.11.2 is also affected.

In jsoup, using Parser.xmlParser() to generate the DOM is not the same as using Parser.htmlParser().
E.g.
tagName in Parser.xmlParser() - case sensitive
tagName in Parser.htmlParser() - lower case.
And when we use the selector - *|mixedCase - the string is converted to lowercase.
Therefore, in the case Parser.xmlParser(), the selector will find nothing.

@dota17 My complaint is that it is not possible at all to select an XML element called mixedCase by using a selector. If you know otherwise, please tell me, maybe I didn't get something.

repo: jhy/jsoup


text:
Connection timeout when using AWS Lambda

I have a Spring Cloud Function in AWS Lambda that returns a connection timeout when trying to parse a website using JSoup. This connection timeout happens only with cold starts.
This function is triggered in prod by an EventBridge rule.
The website is parsed/scraped correctly when the function is warmed up, but after 1.5h to 2 hours, the function goes cold and on the next attempt in prod to parse the website, it results in a connection timeout.
When warmed up, the function usually completes within 8 to 10 seconds successfully. The lambda function has a timeout of 1 minute.
Currently, I'm using AWS Lambda without any VPC, as the function doesn't access any resources in my account.
I have verified the internet connection before using JSoup as you can see in my code.
Also, I can test the function using the "test" option of the console and everything works normally.
The URL is hidden in the logs for clarification.
What could be causing this issue?
2024-08-19T18:05:56.418Z
Internet is available
2024-08-19T18:05:56.419Z
Trying to connect to https://pra.uf**/ (attempt 1)
2024-08-19T18:06:12.712Z
Failed to connect to https://pra.uf**/ on attempt 1: Connection timed out
2024-08-19T18:06:13.712Z
Trying to connect to https://pra.uf**/ (attempt 2)
2024-08-19T18:06:29.094Z
Failed to connect to https://pra.uf**/ on attempt 2: Connection timed out
2024-08-19T18:06:30.094Z
Trying to connect to https://pra.uf**/ (attempt 3)
2024-08-19T18:06:45.478Z
Failed to connect to https://pra.uf**/ on attempt 3: Connection timed out
2024-08-19T18:06:46.478Z
Trying to connect to https://pra.uf**/ (attempt 4)
2024-08-19T18:06:55.461Z 7bcf94b5-6b47-42d2-815d-46cf3dd4ff7a Task timed out after 60.08 seconds

public boolean isInternetAvailable() {
  try {
    final URL url = new URL("http://www.google.com");
    final URLConnection conn = url.openConnection();
    conn.connect();
    conn.getInputStream().close();
    return true;
  } catch (IOException e) {
    return false;
  }
}

@Component
public class ScraperRU implements IScraperRU {

    private static final int TIMEOUT_CONNECTION = 35000; // 35 seconds
    private static final int RETRY_DELAY = 1000; // 1 second
    private static final int MAX_RETRIES = 4;
    private final Utils utils;
    private final ScraperHelper scraperHelper;
    private final String ruUrl;

    public ScraperRU(Utils utils, ScraperHelper scraperHelper, @Value("${RU_URL}") String ruUrl) {
        this.scraperHelper = scraperHelper;
        this.utils = utils;
        this.ruUrl = ruUrl;
    }

    public Document connectScraper(String webURL) throws InterruptedException {
        if (!utils.isInternetAvailable()) {
            throw new RuntimeException("No internet connection available");
        }

        int attempt = 0;

        System.out.println("Internet is available");

        while (attempt < MAX_RETRIES) {
            try {
                attempt++;
                System.out.println("Trying to connect to " + webURL + " (attempt " + attempt + ")");

                Connection.Response response = Jsoup.connect(webURL).timeout(TIMEOUT_CONNECTION)
                        .userAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36")
                        .execute();

                System.out.println("HTTP Status Code: " + response.statusCode());
                System.out.println("HTTP Status Message: " + response.statusMessage());
                System.out.println("Response Headers: " + response.headers());

                if (response.statusCode() == 200) {
                    return response.parse();
                } else {
                    System.out.println("Unexpected HTTP status code: " + response.statusCode());
                    throw new RuntimeException("Failed to retrieve content from the website due to unexpected HTTP " + "status code: " + response.statusCode());
                }
            } catch (IOException e) {
                System.out.println("Failed to connect to " + webURL + " on attempt " + attempt + ": " + e.getMessage());

                if (attempt >= MAX_RETRIES) {
                    throw new RuntimeException("Failed to retrieve content from the website after " + MAX_RETRIES + " attempts");
                }

                Thread.sleep(RETRY_DELAY);
            }
        }

        throw new RuntimeException("Failed to retrieve content from the website after " + MAX_RETRIES + " attempts");
    }

Hi there,
I don't see this as a jsoup issue. You could switch your isInternetAvailable() method to use jsoup.connect() to validate that. jsoup just uses a plain Java HttpURLConnection to make requests and the connection timeout is applied there. That's the same mechanism that implements the url.openConnection.
One guess is that your backend URL is also going cold between runs and takes longer than the connection timeout to spin up. Or some firewall along the way doesn't like your request.
Good luck rooting it out!

authors: gxlpes jhy


text:
[HELP WANTED] How to run a bash file before aplication is initialized?

Hello guys, later on i´be working on Octprint, but it need to run a bash file when the aplication is initialized for the first time to buil the server, when i run nativefier it works fine, but the server have to be online for the app works properly. More info to build https://github.com/foosel/OctoPrint/wiki/Setup-on-Windows
Any suggestions how to do this?

@alequeiroz thanks for the interest, but we'll need more help to help you. Please detail what you need in a precise and reproducible way.

@ronjouch I´m creating a bash to do all the setup of the Octoprint on windows, and i need to run this before the aplication itself, because i need to creat the server before the apllication run:
(venv) C:\OctoPrint>octoprint serve
2017-11-01 10:56:22,329 - octoprint.server - INFO - ******************************************************************************
2017-11-01 10:56:22,332 - octoprint.server - INFO - Starting OctoPrint 1.3.2 (master branch)
2017-11-01 10:56:22,332 - octoprint.server - INFO - ******************************************************************************
before the apllication run.

I think the best solution would be to write a bash script that creates the server you described and then follows (&&) with executing the binary of the app created with nativefier. Adding such functionality to nativefier doesn't seem sustainable as it can be acheived easily with very basic means.

authors: AABatteries alequeiroz ronjouch

repo: jiahaog/nativefier


text:
add openai-whisper 20231106

support: https://github.com/openai/whisper/releases/tag/v20231106

large-v3 model!!!

Manaully installing the latest whisper doesn't work for large-v3, I think this needs more changes than just installing it.

UserWarning: The installed version of Whisper might be incompatible.
Whisper 20231106 is installed.Versions confirm to be compatible: 20230314, 20230918

RuntimeError: Given groups=1, weight of size [1280, 128, 3], expected input[1, 80, 3000] to have 128 channels, but got 80 channels instead

authors: JonasCz plainOldCode

repo: jianfch/stable-ts


text:
Missing downloaded images after gallery download task completed.

画廊下载完成后，部分场景下存在一些图片仍显示未下载的bug。

Fixed in v3.2.0


text:
处理QUIT

kill -QUIT xxx
INFO[2017-12-13 23:38:34] closing canal
INFO[2017-12-13 23:38:34] syncer is closing...
ERRO[2017-12-13 23:38:34] canal start sync binlog err: context canceled
FATA[2017-12-13 23:38:34] Binlog::Start - binlog服务：start canal err context canceled

这个应该收到信号，正常关闭吧？打ERRO/FATA是什么原因？

fixed

repo: jilieryuyi/wing-binlog-go